[Jifty-commit] jifty branch, master, updated. 1.10518-51-ge6ed3d3
Jifty commits
jifty-commit at lists.jifty.org
Tue Oct 18 02:31:03 EDT 2011
The branch, master has been updated
via e6ed3d3074019a330222835db6583872a846f358 (commit)
from 9da5c55053519b09d806957434b467e93953267f (commit)
Summary of changes:
share/web/static/js/jifty.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit e6ed3d3074019a330222835db6583872a846f358
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Oct 18 02:29:40 2011 -0400
Extract action order information more robustly when AJAX submitting
Not all registration elements (such as those we generate in
buttonFormElements) have ids, but all input elements will have names.
If there's no id, check against the name attribute.
diff --git a/share/web/static/js/jifty.js b/share/web/static/js/jifty.js
index 45f6129..bd78989 100644
--- a/share/web/static/js/jifty.js
+++ b/share/web/static/js/jifty.js
@@ -203,8 +203,9 @@ Action.prototype = {
a['moniker'] = this.moniker;
a['class'] = this.actionClass;
- if (this.register && this.register.id) {
- var tmp = this.register.id.match(/^J:A-(\d+)-/);
+ var id_or_name = this.register.id || this.register.name;
+ if (this.register && id_or_name) {
+ var tmp = id_or_name.match(/^J:A-(\d+)-/);
if (tmp && tmp.length == 2)
a['order'] = tmp[1];
}
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list