Fire the selectall event when select all element is clicked.
This commit is contained in:
parent
1466f160fc
commit
c254bfd02e
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
2
chosen/chosen.jquery.min.js
vendored
2
chosen/chosen.jquery.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
2
chosen/chosen.proto.min.js
vendored
2
chosen/chosen.proto.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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: ->
|
||||
|
|
Loading…
Reference in a new issue