From f0afe953b7c9c8d43d860fa58127d5621d3accbe Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 9 Mar 2016 16:31:25 +0000 Subject: [PATCH] Fix toggling multiple display did not reduce value --- etemplate/js/et2_widget_taglist.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_taglist.js b/etemplate/js/et2_widget_taglist.js index bd80c4de75..14b605955d 100644 --- a/etemplate/js/et2_widget_taglist.js +++ b/etemplate/js/et2_widget_taglist.js @@ -715,7 +715,11 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR if(this.taglist == null) return; // Switch to multiple if allowed and more than 1 value - this._set_multiple(this.options.multiple ? values.length > 1 : false); + var multiple = this.options.multiple ? values.length > 1 : false; + if(multiple !== this._multiple) + { + this._set_multiple(multiple); + } this.taglist.setSelection(values); },