Merge pull request #1678 from jdecuyper/feature-remove-duplicated-option
Remove duplicated options from multi-valued select boxes.
This commit is contained in:
commit
418a659adb
@ -2842,9 +2842,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
index = indexOf(this.id(data), val);
|
while((index = indexOf(this.id(data), val)) >= 0) {
|
||||||
|
|
||||||
if (index >= 0) {
|
|
||||||
val.splice(index, 1);
|
val.splice(index, 1);
|
||||||
this.setVal(val);
|
this.setVal(val);
|
||||||
if (this.select) this.postprocessResults();
|
if (this.select) this.postprocessResults();
|
||||||
|
Loading…
Reference in New Issue
Block a user