Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Submit on change if input type select and no submit button defined (g…
…regpyp)
  • Loading branch information
tuupola committed Oct 3, 2009
1 parent cfdeafc commit c973ae8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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)
Expand Down
7 changes: 7 additions & 0 deletions jquery.jeditable.js
Expand Up @@ -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();
});
}
}
}
},
Expand Down

0 comments on commit c973ae8

Please sign in to comment.