Skip to content

Commit

Permalink
check event renamed back to click. makes more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hynds committed Apr 27, 2010
1 parent d1001f0 commit c782bc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/callbacks.htm
Expand Up @@ -15,7 +15,7 @@
var $callback = $("#callback");

$("select").multiselect({
check: function(event, ui){
click: function(event, ui){
$callback.html(ui.value + ' ' + (ui.checked ? 'checked' : 'unchecked') );
},
open: function(){
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.multiselect.js
Expand Up @@ -246,7 +246,7 @@ $.widget("ui.multiselect", {
var $this = $(this), val = this.value;

// bail if this input is disabled or the event is cancelled
if( $this.is(':disabled') || self._trigger('check', e, { value:this.value, text:this.title, checked:this.checked }) === false ){
if( $this.is(':disabled') || self._trigger('click', e, { value:this.value, text:this.title, checked:this.checked }) === false ){
e.preventDefault();
return;
}
Expand Down

0 comments on commit c782bc5

Please sign in to comment.