diff options
-rw-r--r-- | bower.json | 9 | ||||
-rw-r--r-- | docs/README.md | 2 | ||||
-rw-r--r-- | jquery.multiple.select.js | 6 | ||||
-rw-r--r-- | multiple-select.png | bin | 3342 -> 3380 bytes |
4 files changed, 13 insertions, 4 deletions
@@ -1,13 +1,18 @@ { "name": "multiple-select", - "version": "1.1.0", + "version": "1.1.1", "homepage": "https://github.com/wenzhixin/multiple-select", "authors": [ "文翼 <wenzhixin2010@gmail.com>" ], + "main" : [ + "multiple-select.css", + "multiple-select.png", + "jquery.multiple.select.js" + ], "description": "A jQuery plugin to select multiple elements with checkboxes", "license": "MIT", "dependencies": { - "jquery": ">=1.7.0" + "jquery": "1.7.x" } } diff --git a/docs/README.md b/docs/README.md index 544f4e4..987c889 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1244,7 +1244,7 @@ onOptgroupClick: function(view) { Fires when a checkbox is checked or unchecked. ```javascript -onOptgroupClick: function(view) { +onClick: function(view) { /* view.label: the text of the checkbox item view.checked: the checked of the checkbox item diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js index a9229aa..e208ec4 100644 --- a/jquery.multiple.select.js +++ b/jquery.multiple.select.js @@ -334,6 +334,9 @@ (this.options.displayValues ? selects : this.getSelects('text')) .join(this.options.delimiter)); } + if (this.options.addTitle) + $span.prop('title', this.getSelects('text')); + // set selects to select this.$el.val(this.getSelects()); @@ -501,7 +504,7 @@ 'enable', 'disable', 'checkAll', 'uncheckAll', 'focus', 'blur', - 'refresh' + 'refresh', 'close' ]; this.each(function () { @@ -554,6 +557,7 @@ blockSeparator: '', displayValues: false, delimiter: ', ', + addTitle: false, styler: function () { return false; diff --git a/multiple-select.png b/multiple-select.png Binary files differindex 2a7ba60..b1282ce 100644 --- a/multiple-select.png +++ b/multiple-select.png |