Permalink
Browse files

Fire the selectall event when select all element is clicked.

  • Loading branch information...
1 parent 1466f16 commit c254bfd02ebf861316ed9e2477b6241972414392 @pfiller pfiller committed Feb 28, 2012
View
@@ -601,6 +601,7 @@ Copyright (c) 2011 by Harvest
if (!option.disabled) option.selected = true;
}
this.form_field_jq.trigger("liszt:updated");
+ this.form_field_jq.trigger("liszt:selectall");
return this.select_all_disable();
};

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -591,6 +591,7 @@ Copyright (c) 2011 by Harvest
if (!option.disabled) return option.selected = true;
});
this.form_field.fire("liszt:updated");
+ this.form_field.fire("liszt:selectall");
return this.select_all_disable();
};

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -265,6 +265,7 @@ class Chosen extends AbstractChosen
for option in options
option.selected = true if not option.disabled
@form_field_jq.trigger("liszt:updated")
+ @form_field_jq.trigger("liszt:selectall")
this.select_all_disable()
select_all_disable: ->
@@ -254,6 +254,7 @@ class Chosen extends AbstractChosen
@form_field.select("option").each (option) ->
option.selected = true if not option.disabled
@form_field.fire("liszt:updated")
+ @form_field.fire("liszt:selectall")
this.select_all_disable()
select_all_disable: ->

0 comments on commit c254bfd

Please sign in to comment.