Permalink
Browse files

Hide results after select all (IE Fix)

  • Loading branch information...
1 parent c254bfd commit ffc95adbfe097f22131c102ca0d0371e2503fbd6 @pfiller pfiller committed Mar 5, 2012
View
@@ -602,7 +602,8 @@ Copyright (c) 2011 by Harvest
}
this.form_field_jq.trigger("liszt:updated");
this.form_field_jq.trigger("liszt:selectall");
- return this.select_all_disable();
+ this.select_all_disable();
+ return this.results_hide();
};
Chosen.prototype.select_all_disable = function() {
Oops, something went wrong.
View
@@ -592,7 +592,8 @@ Copyright (c) 2011 by Harvest
});
this.form_field.fire("liszt:updated");
this.form_field.fire("liszt:selectall");
- return this.select_all_disable();
+ this.select_all_disable();
+ return this.results_hide();
};
Chosen.prototype.select_all_disable = function() {
Oops, something went wrong.
@@ -267,6 +267,7 @@ class Chosen extends AbstractChosen
@form_field_jq.trigger("liszt:updated")
@form_field_jq.trigger("liszt:selectall")
this.select_all_disable()
+ this.results_hide()
select_all_disable: ->
@select_all_link.hide()
@@ -256,6 +256,7 @@ class Chosen extends AbstractChosen
@form_field.fire("liszt:updated")
@form_field.fire("liszt:selectall")
this.select_all_disable()
+ this.results_hide()
select_all_disable: ->
@select_all_link.hide()
View
@@ -1306,7 +1306,7 @@
_results = [];
for (_i = 0, _len = selects.length; _i < _len; _i++) {
select = selects[_i];
- _results.push(new Chosen(select));
+ _results.push(new Chosen(select, {enable_select_all: true}));
}
deselects = $$(".chzn-select-deselect");
for (_i = 0, _len = deselects.length; _i < _len; _i++) {

0 comments on commit ffc95ad

Please sign in to comment.