Commits

Olemis Lang committed 1b52aad

BH Theme #146 : By default submit to current URL inplace=submit + form token

  • Participants
  • Parent commits 6557071
  • Branches t146_inline_edit

Comments (0)

Files changed (1)

File t146/t146_r1386655_bheditable_submit.diff

 # HG changeset patch
-# Parent dc96d4d618dd8c24a68d4ff94e8ce19bba3217b0
+# Parent 205fe639f4a6631f16ef0d355a9a7e0ffd949f08
 BH Dashboard #146 : Bloodhound in-place edit arquitecture (backend)
 
+diff -r 205fe639f4a6 bhdashboard/htdocs/js/bheditable.js
+--- a/bhdashboard/htdocs/js/bheditable.js	Tue Oct 02 10:11:57 2012 -0500
++++ b/bhdashboard/htdocs/js/bheditable.js	Tue Oct 02 14:08:53 2012 -0500
+@@ -24,6 +24,7 @@
+   $.extend($.fn.editable.defaults, {
+       'cssclass' : 'inplace',
+       'indicator' : '<small><em><i class="icon-loading"></i> Saving ...</em></small>',
++      'submitdata' : {'__FORM_TOKEN' : form_token || '' , 'inplace' : 'submit'},
+       'placeholder' : '<small class="btn-link">Click to edit</small>'
+     });
+ 
+@@ -254,7 +255,7 @@
+       }
+ 
+       //alert($.toJSON(edit_data));
+-      $editable.editable('http://example.com', edit_data);
++      $editable.editable('', edit_data);
+     })
+   })
+