Permalink
Browse files

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

…regpyp)
  • Loading branch information...
1 parent cfdeafc commit c973ae8d43e51192803dccd140417850ee893bfb @tuupola committed Oct 3, 2009
Showing with 11 additions and 0 deletions.
  1. +4 −0 README.textile
  2. +7 −0 jquery.jeditable.js
View
@@ -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
@@ -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();
+ });
+ }
}
}
},

0 comments on commit c973ae8

Please sign in to comment.