1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Merge pull request #1678 from jdecuyper/feature-remove-duplicated-option

Remove duplicated options from multi-valued select boxes.
This commit is contained in:
Igor Vaynberg 2013-08-31 19:20:52 -07:00
commit 418a659adb

View File

@ -2842,9 +2842,7 @@ the specific language governing permissions and limitations under the Apache Lic
return;
}
index = indexOf(this.id(data), val);
if (index >= 0) {
while((index = indexOf(this.id(data), val)) >= 0) {
val.splice(index, 1);
this.setVal(val);
if (this.select) this.postprocessResults();