mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-16 20:28:09 +01:00
Merge branch 'master' of git@github.com:bsag/tracks
This commit is contained in:
commit
4e12cfafb2
4 changed files with 13 additions and 8 deletions
|
|
@ -73,7 +73,7 @@
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \
|
$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \
|
||||||
-d "project[name]=Build a treehouse for the kids" \
|
-d "<project><name>Build a treehouse for the kids</name></project>" \
|
||||||
<%= home_url %>projects.xml -i
|
<%= home_url %>projects.xml -i
|
||||||
>> HTTP/1.1 201 Created
|
>> HTTP/1.1 201 Created
|
||||||
Location: <%= home_url %>projects/65.xml
|
Location: <%= home_url %>projects/65.xml
|
||||||
|
|
@ -86,7 +86,7 @@ Location: <%= home_url %>projects/65.xml
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \
|
$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \
|
||||||
-d "todo[description]=Model treehouse in SketchUp&todo[context_id]=2&todo[project_id]=65" \
|
-d "<todo><description>Model treehouse in SketchUp</description><context_id>2</context_id><project_id>65<project_id>" \
|
||||||
<%= home_url %>todos.xml -i
|
<%= home_url %>todos.xml -i
|
||||||
>> HTTP/1.1 201 Created
|
>> HTTP/1.1 201 Created
|
||||||
Location: <%= home_url %>todos/452.xml
|
Location: <%= home_url %>todos/452.xml
|
||||||
|
|
@ -99,7 +99,7 @@ Location: <%= home_url %>todos/452.xml
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" -X PUT \
|
$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" -X PUT \
|
||||||
-d "todo[notes]=use maple texture" \
|
-d "<todo><notes>use maple texture</notes></todos>" \
|
||||||
<%= home_url %>todos/452.xml -i
|
<%= home_url %>todos/452.xml -i
|
||||||
>> HTTP/1.1 200 OK
|
>> HTTP/1.1 200 OK
|
||||||
...
|
...
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<% form_tag formatted_todos_path(:m), :method => :post do %>
|
<% form_tag formatted_todos_path(:m), :method => :post do %>
|
||||||
<%= render :partial => 'edit_mobile' %>
|
<%= render :partial => 'edit_mobile' %>
|
||||||
<p><input type="submit" value="Create" tabindex="6" /></p>
|
<p><input type="submit" value="Create" tabindex="6" accesskey="#" /></p>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<%= link_to "Back", @return_path %>
|
<%= link_to "Back", @return_path %>
|
||||||
|
|
@ -99,6 +99,11 @@ TRACKS_COOKIES_SECURE = false
|
||||||
MOBILE_CONTENT_TYPE = 'tracks/mobile'
|
MOBILE_CONTENT_TYPE = 'tracks/mobile'
|
||||||
Mime::Type.register(MOBILE_CONTENT_TYPE, :m)
|
Mime::Type.register(MOBILE_CONTENT_TYPE, :m)
|
||||||
|
|
||||||
TRACKS_VERSION='1.7-devel'
|
tracks_version='1.7-devel'
|
||||||
info=`git log --pretty=format:"%ai" -1`
|
|
||||||
TRACKS_VERSION=TRACKS_VERSION+' ('+info+')'
|
# comment out next two lines if you do not want (or can not) the date of the
|
||||||
|
# last git commit in the footer
|
||||||
|
info=`git log --pretty=format:"%ai" -1`+
|
||||||
|
tracks_version=tracks_version + ' ('+info+')'
|
||||||
|
|
||||||
|
TRACKS_VERSION=tracks_version
|
||||||
2
public/javascripts/controls.js
vendored
2
public/javascripts/controls.js
vendored
|
|
@ -211,7 +211,7 @@ Autocompleter.Base = Class.create({
|
||||||
markPrevious: function() {
|
markPrevious: function() {
|
||||||
if(this.index > 0) this.index--
|
if(this.index > 0) this.index--
|
||||||
else this.index = this.entryCount-1;
|
else this.index = this.entryCount-1;
|
||||||
this.getEntry(this.index).scrollIntoView(true);
|
this.getEntry(this.index).scrollIntoView(false);
|
||||||
},
|
},
|
||||||
|
|
||||||
markNext: function() {
|
markNext: function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue