Commit ce84d91b authored by shayh's avatar shayh

prevent the "select all" from being created twice

parent 7a5590de
......@@ -310,6 +310,9 @@
var tag = $(element).prop('tagName')
.toLowerCase();
if ($(element).prop('value') == this.options.selectAllValue)
return
if (tag === 'optgroup') {
this.createOptgroup(element);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment