summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/README.md8
-rw-r--r--jquery.multiple.select.js3
2 files changed, 10 insertions, 1 deletions
diff --git a/docs/README.md b/docs/README.md
index e71c08b..a40b9cb 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1082,6 +1082,14 @@ Multiple Select select all checkbox text.
By default this option is set to ```Select all```.
+#### selectAllDelimiter
+
+Type: Array
+
+Multiple Select select all checkbox delimiter.
+
+By default this option is set to ```['[',']']```.
+
#### allSelected
Type: false or string
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index ca35770..14db7d9 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -71,7 +71,7 @@
'<li class="ms-select-all">',
'<label>',
'<input type="checkbox" ' + this.selectAllName + ' /> ',
- '[' + this.options.selectAllText + ']',
+ this.options.selectAllDelimiter[0] + this.options.selectAllText + this.options.selectAllDelimiter[1],
'</label>',
'</li>'
);
@@ -517,6 +517,7 @@
placeholder: '',
selectAll: true,
selectAllText: 'Select all',
+ selectAllDelimiter: ['[',']'],
allSelected: 'All selected',
minumimCountSelected: 3,
countSelected: '# of % selected',