diff --git a/app/views/integrations/rest_api.html.erb b/app/views/integrations/rest_api.html.erb index f401328f..4ab9a2b7 100644 --- a/app/views/integrations/rest_api.html.erb +++ b/app/views/integrations/rest_api.html.erb @@ -73,7 +73,7 @@
 
 $ 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
 >> HTTP/1.1 201 Created
 Location: <%= home_url %>projects/65.xml
@@ -86,7 +86,7 @@ Location: <%= home_url %>projects/65.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
 >> HTTP/1.1 201 Created
 Location: <%= home_url %>todos/452.xml
@@ -99,7 +99,7 @@ Location: <%= home_url %>todos/452.xml
 
 
   $ 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
   >> HTTP/1.1 200 OK
   ...
diff --git a/app/views/todos/new.m.erb b/app/views/todos/new.m.erb
index 17144323..2dfe0fd7 100644
--- a/app/views/todos/new.m.erb
+++ b/app/views/todos/new.m.erb
@@ -1,5 +1,5 @@
 <% form_tag formatted_todos_path(:m), :method => :post do %>
   <%= render :partial => 'edit_mobile' %>
-  

+

<% end -%> <%= link_to "Back", @return_path %> \ No newline at end of file diff --git a/config/environment.rb.tmpl b/config/environment.rb.tmpl index 56e80221..8ab4ade4 100644 --- a/config/environment.rb.tmpl +++ b/config/environment.rb.tmpl @@ -99,6 +99,11 @@ TRACKS_COOKIES_SECURE = false MOBILE_CONTENT_TYPE = 'tracks/mobile' Mime::Type.register(MOBILE_CONTENT_TYPE, :m) -TRACKS_VERSION='1.7-devel' -info=`git log --pretty=format:"%ai" -1` -TRACKS_VERSION=TRACKS_VERSION+' ('+info+')' \ No newline at end of file +tracks_version='1.7-devel' + +# 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 \ No newline at end of file diff --git a/public/javascripts/controls.js b/public/javascripts/controls.js index 5aaf0bb2..28808419 100644 --- a/public/javascripts/controls.js +++ b/public/javascripts/controls.js @@ -211,7 +211,7 @@ Autocompleter.Base = Class.create({ markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCount-1; - this.getEntry(this.index).scrollIntoView(true); + this.getEntry(this.index).scrollIntoView(false); }, markNext: function() {