summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorHck <alexsvirin@gmail.com>2013-04-12 13:28:57 +0300
committerHck <alexsvirin@gmail.com>2013-04-12 13:28:57 +0300
commit5565aeccdaca95b08448ae3c495878b3adc98707 (patch)
tree983f247310d308e199805f14a0802987a904a95e /js
parent1614e7208038a5855ddda259bcfd9ad7e53c313d (diff)
downloadmulti-select-5565aeccdaca95b08448ae3c495878b3adc98707.zip
multi-select-5565aeccdaca95b08448ae3c495878b3adc98707.tar.gz
multi-select-5565aeccdaca95b08448ae3c495878b3adc98707.tar.bz2
Fixed refreshing (empty selectable & selection containers etc. before reinit)
Diffstat (limited to 'js')
-rw-r--r--js/jquery.multi-select.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js
index 4b9352b..f23df0d 100644
--- a/js/jquery.multi-select.js
+++ b/js/jquery.multi-select.js
@@ -293,6 +293,10 @@
'refresh' : function() {
$("#ms-"+this.$element.attr("id")).remove();
+ this.$selectableContainer.empty();
+ this.$selectableUl.empty();
+ this.$selectionContainer.empty();
+ this.$selectionUl.empty();
this.init(this.options);
},