summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author文翼 <wenzhixin2010@gmail.com>2014-05-16 16:15:37 +0800
committer文翼 <wenzhixin2010@gmail.com>2014-05-16 16:15:37 +0800
commite8e40875ef2b5154dd0b4e9e40f091837c45140b (patch)
tree5d18fb97d30b5d6af9edaf3f830c6b8e2a068226
parent9980080d7194d239ae20185950a1b3e6501c1865 (diff)
parent7a849d0e3eedef7244db962983779417ac9d171f (diff)
downloadmultiple-select-e8e40875ef2b5154dd0b4e9e40f091837c45140b.zip
multiple-select-e8e40875ef2b5154dd0b4e9e40f091837c45140b.tar.gz
multiple-select-e8e40875ef2b5154dd0b4e9e40f091837c45140b.tar.bz2
Merge pull request #76 from nicolas-joubert/patch-2
Make 'No matches found' translatable
-rw-r--r--jquery.multiple.select.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 7ffab23..c0b163e 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -76,7 +76,7 @@
$.each(this.$el.children(), function(i, elm) {
html.push(that.optionToHtml(i, elm));
});
- html.push('<li class="ms-no-results">No matches found</li>');
+ html.push('<li class="ms-no-results">'+this.options.noMatchesFound+'</li>');
html.push('</ul>');
this.$drop.html(html.join(''));
this.$drop.find('ul').css('max-height', this.options.maxHeight + 'px');
@@ -448,6 +448,7 @@
allSelected: 'All selected',
minumimCountSelected: 3,
countSelected: '# of % selected',
+ noMatchesFound: 'No matches found',
multiple: false,
multipleWidth: 80,
single: false,