Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Submit on change if input type select and no submit button defined (g…

…regpyp)
  • Loading branch information...
commit c973ae8d43e51192803dccd140417850ee893bfb 1 parent cfdeafc
@tuupola authored
Showing with 11 additions and 0 deletions.
  1. +4 −0 README.textile
  2. +7 −0 jquery.jeditable.js
View
4 README.textile
@@ -1,5 +1,9 @@
h3. Changelog
+h4. 1.7.2
+
+* Submit on change if input type select and no submit button defined ("gregpyp":http://github.com/gregpyp)
+
h4. 1.7.1
* Namespace default event as click.editable ("Zangetsu":http://github.com/Zangetsu)
View
7 jquery.jeditable.js
@@ -513,6 +513,13 @@
$(this).attr('selected', 'selected');
}
});
+ /* Submit on change if no submit button defined. */
+ if (!settings.submit) {
+ var form = this;
+ $('select', this).change(function() {
+ form.submit();
+ });
+ }
}
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.