[Jifty-commit] r7276 - jifty/trunk/share/web/static/js

Jifty commits jifty-commit at lists.jifty.org
Wed Jun 17 16:18:30 EDT 2009


Author: alexmv
Date: Wed Jun 17 16:18:29 2009
New Revision: 7276

Modified:
   jifty/trunk/share/web/static/js/jifty.js

Log:
Extract ordering information for actions submitted in AJAX

Patch provided by Eric-Christian Koch <koch at schaffhausen.de>

Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js	(original)
+++ jifty/trunk/share/web/static/js/jifty.js	Wed Jun 17 16:18:29 2009
@@ -181,6 +181,12 @@
         a['moniker'] = this.moniker;
         a['class']   = this.actionClass;
 
+        if (this.register && this.register.id) {
+            var tmp = this.register.id.match(/^J:A-(\d+)-/);
+            if (tmp.length == 2)
+                a['order'] = tmp[1];
+        }
+
         a['fields']  = {};
         var fields = this.fields();
         for (var i = 0; i < fields.length; i++) {


More information about the Jifty-commit mailing list