Skip to content

Commit

Permalink
TextAreas should not trigger a submit when Enter/Intro is pressed.
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/CTK/trunk@5584 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Sep 29, 2010
1 parent 2e1984f commit 23a7ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/Submitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ if ((typeof submitter_loaded) == 'undefined') {
this.init = function (self) {
/* Events */
self.find(":text, :password, textarea").not('.noauto').bind ('keypress', self, input_keypress_cb);
self.find(":text, :password, textarea").filter('.noauto').bind ('keypress', self, input_keypress_noauto_cb);
self.find(":text, :password").filter('.noauto').bind ('keypress', self, input_keypress_noauto_cb);
self.find(":text, :password, textarea").not('.noauto').bind ("blur", self, input_blur_cb);
self.find(":checkbox, :radio").not('.required,.noauto').bind ("change", self, input_checkbox_cb);
self.find("select").not('.required,.noauto').bind ("change", self, input_combobox_cb);
Expand Down

0 comments on commit 23a7ef6

Please sign in to comment.