summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author文翼 <wenzhixin2010@gmail.com>2014-07-10 20:57:26 +0800
committer文翼 <wenzhixin2010@gmail.com>2014-07-10 20:57:26 +0800
commit3a2e85046e683c213dccd3138a72d2bbbf9161d6 (patch)
tree5659dae169360d7aa73d998bcf564086f1c37909
parent3ccc20af49791df36473df698191738b159157ab (diff)
parent602ba2061d7a04a06918cf28525ae05f67dc0ca6 (diff)
downloadmultiple-select-3a2e85046e683c213dccd3138a72d2bbbf9161d6.zip
multiple-select-3a2e85046e683c213dccd3138a72d2bbbf9161d6.tar.gz
multiple-select-3a2e85046e683c213dccd3138a72d2bbbf9161d6.tar.bz2
Merge pull request #107 from code-couleurs/selectAllTextDelimiter
custom delimiter for selectAll text
-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',