From cc132db9068f9018588d0fb552ab044a565cdb50 Mon Sep 17 00:00:00 2001
From: Dreamltf
Date: Wed, 6 May 2015 01:19:08 +0800
Subject: [PATCH 1/7] revert
---
js/jquery.multipleselectbox.js | 50 ----------------------------------
multipleselectbox.css | 25 -----------------
2 files changed, 75 deletions(-)
diff --git a/js/jquery.multipleselectbox.js b/js/jquery.multipleselectbox.js
index 925c52c..ba32589 100644
--- a/js/jquery.multipleselectbox.js
+++ b/js/jquery.multipleselectbox.js
@@ -14,7 +14,6 @@
(function($) {
/* static variables */
var PLUGIN_NAMESPACE = "MultipleSelectBox";
- var PLUGIN_FILTER_NAMESPACE = "MultipleSelectBoxFilter";
var PLUGIN_MODE_AUTO = "auto";
var PLUGIN_ATTR_VALUE_RENDER = "value-render";
var PLUGIN_STYLE_HORIZONTAL = "horizontal";
@@ -37,9 +36,6 @@
"isKeyEventEnabled": true,
/* form options */
"submitField": null,
- /* filter options */
- "isFilterEnabled": true,
- "filterField": null,
/* callback function */
"onCreate": null,
"onSelectStart": null,
@@ -788,36 +784,6 @@
});
}
- /**
- * Private : Initialize MultipleSelectBox Filter
- */
- function initializeMultipleSelectBoxFilter($container) {
- var options = $container.getMultipleSelectBoxOptions();
- var containerOffset = $container.offset();
- var filterField = options.filterField;
- $container.bind("mouseenter." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.removeClass(PLUGIN_STYLE_DISABLED);
- }).bind("mouseleave." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.addClass(PLUGIN_STYLE_DISABLED);
- }).bind("focus." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.removeClass(PLUGIN_STYLE_DISABLED);
- }).bind("blur." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.addClass(PLUGIN_STYLE_DISABLED);
- });
- filterField.css({
- "top": containerOffset.top + $container.height() - filterField.outerHeight(),
- "left": containerOffset.left + $container.width() - filterField.outerWidth() - scrollBarSize
- }).bind("mouseenter." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.removeClass(PLUGIN_STYLE_DISABLED);
- }).bind("mouseleave." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.addClass(PLUGIN_STYLE_DISABLED);
- }).bind("focus." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.removeClass(PLUGIN_STYLE_DISABLED);
- }).bind("blur." + PLUGIN_FILTER_NAMESPACE, function() {
- filterField.addClass(PLUGIN_STYLE_DISABLED);
- });
- }
-
function computeMultipleSelectBoxOptions($container, options) {
if (options.isTouchDeviceMode == PLUGIN_MODE_AUTO) {
options.isTouchDeviceMode = isTouchDevice;
@@ -830,15 +796,6 @@
var $submitField = $("input[name=" + originalSubmitField + "]");
options.submitField = ($submitField.length > 0 ? $submitField : $("").insertAfter($container));
}
- if (options.isFilterEnabled) {
- var filterField = options.filterField;
- if (filterField == null) {
- filterField = $("Search:
").insertAfter($container);
- } else if (typeof filterField == "string") {
- filterField = $("#" + filterField);
- }
- options.filterField = filterField;
- }
$container.data("options", options);
}
@@ -863,9 +820,6 @@
});
/* touch scroll supported for ios5+ only */
/* $container.css("-webkit-overflow-scrolling", "touch"); */
- if (options.isFilterEnabled) {
- options.filterField.addClass(PLUGIN_FILTER_NAMESPACE + " " + PLUGIN_STYLE_DISABLED);
- }
}
function initializeMultipleSelectBoxCallbackFunctions($container, options) {
@@ -903,10 +857,6 @@
if (options.isTouchDeviceMode) {
initializeMultipleSelectBoxTouchEvent($container);
}
- /* search helper */
- if (options.isFilterEnabled) {
- initializeMultipleSelectBoxFilter($container);
- }
/* reset the field value */
if (options.submitField != null) {
options.submitField.val($container.serializeMultipleSelectBox());
diff --git a/multipleselectbox.css b/multipleselectbox.css
index 7374111..b0156d3 100644
--- a/multipleselectbox.css
+++ b/multipleselectbox.css
@@ -77,31 +77,6 @@
z-index: 1;
}
-/* filter */
-.MultipleSelectBoxFilter {
- background-color: white;
- padding: 3px 5px 2px 5px;
- position: absolute;
- z-index: 1;
- /* corner */
- -moz-border-radius: 5px;
- -khtml-border-radius: 5px;
- -webkit-border-radius: 5px;
- border-radius: 5px;
- -moz-box-shadow: 0 0 5px #888;
- -webkit-box-shadow: 0 0 5px #888;
- box-shadow: 0 0 5px #888;
-}
-
-.MultipleSelectBoxFilter input {
- border: none;
- border-bottom: 1px solid gray;
-}
-
-.MultipleSelectBoxFilter.disabled {
- display: none;
-}
-
/* Ultimate CSS Gradient Generator (Orange 3D) */
.MultipleSelectBox li.selected {
background: #ffa84c;
From fa7adad10547476c7ede4e8d1e8732a055e8e14f Mon Sep 17 00:00:00 2001
From: Dreamltf
Date: Sat, 19 Mar 2016 12:28:12 +0800
Subject: [PATCH 2/7] Issue 2: onSelectChange error
---
ChangeLog.txt | 4 ++++
build.xml | 2 +-
jQueryMultipleSelectBox.jquery.json | 2 +-
js/jquery.multipleselectbox.js | 4 ++--
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index fb9473c..2ff0cf3 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -3,9 +3,13 @@ jQueryMultipleSelectBox Change Log
Version -
====================
.Add isFilterEnabled
+
+Version 0.8.2
+====================
.Remove getMultipleSelectBoxHistory's isReNew parameter
.Add method: clearMultipleSelectBoxHistory and refreshMultipleSelectBox
.Fix bug: serialize submit field after initializing
+.Issue 2: onSelectChange error
Version 0.8.1
====================
diff --git a/build.xml b/build.xml
index 9ca639a..60f2e12 100644
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/jQueryMultipleSelectBox.jquery.json b/jQueryMultipleSelectBox.jquery.json
index e7670d8..eb6d573 100644
--- a/jQueryMultipleSelectBox.jquery.json
+++ b/jQueryMultipleSelectBox.jquery.json
@@ -1,6 +1,6 @@
{
"name": "jQueryMultipleSelectBox",
- "version": "0.8.1",
+ "version": "0.8.2",
"title": "jQueryMultipleSelectBox",
"author": {
"name": "h920526",
diff --git a/js/jquery.multipleselectbox.js b/js/jquery.multipleselectbox.js
index ba32589..8f41aaa 100644
--- a/js/jquery.multipleselectbox.js
+++ b/js/jquery.multipleselectbox.js
@@ -119,10 +119,10 @@
* @return jQuery
*/
"getMultipleSelectBoxSelectedRows": function() {
- return $.grep(this.getMultipleSelectBoxCachedRows(), function(row) {
+ return this.pushStack($.grep(this.getMultipleSelectBoxCachedRows(), function(row) {
var $childRow = $(row);
return ($childRow.isMultipleSelectBoxRowSelectable() && $childRow.isMultipleSelectBoxRowSelected());
- });
+ }));
},
/**
From a28625baff35a5c83b6735d0a69c2b031d2f79b6 Mon Sep 17 00:00:00 2001
From: h920526
Date: Tue, 1 Nov 2016 00:54:30 +0800
Subject: [PATCH 3/7] Update README.md
---
README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/README.md b/README.md
index dd805a4..050c157 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,6 @@ jQuery Multiple Select Box Plugin
Tested with: Android 2+, Chrome 22, Firefox 16, IE 6+, Safari 5
-Demo: https://dl.dropbox.com/u/8316573/index.html
Download: https://github.com/h920526/jQueryMultipleSelectBox/releases
From 0ad173783f0d4d99cf89f19f45a1634894700349 Mon Sep 17 00:00:00 2001
From: h920526
Date: Tue, 1 Nov 2016 00:54:56 +0800
Subject: [PATCH 4/7] Update README.md
---
README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/README.md b/README.md
index 050c157..5021b76 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,6 @@ jQuery Multiple Select Box Plugin
Tested with: Android 2+, Chrome 22, Firefox 16, IE 6+, Safari 5
-
Download: https://github.com/h920526/jQueryMultipleSelectBox/releases
See also:
From 0cc05e5e8521957db927e4aee97636cc6fc1319e Mon Sep 17 00:00:00 2001
From: h920526
Date: Fri, 9 Jul 2021 16:36:52 +0800
Subject: [PATCH 5/7] Update README.md
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 5021b76..08ccde8 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,8 @@ jQuery Multiple Select Box Plugin
Tested with: Android 2+, Chrome 22, Firefox 16, IE 6+, Safari 5
Download: https://github.com/h920526/jQueryMultipleSelectBox/releases
+
+Demo: https://h920526.github.io/jQueryMultipleSelectBox/
See also:
==========
From f9f00a23e9068a18ca1641abebe7da09dd30ce73 Mon Sep 17 00:00:00 2001
From: h920526
Date: Fri, 9 Jul 2021 16:37:19 +0800
Subject: [PATCH 6/7] Update index.html
---
index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index a7a6dc4..89f3013 100644
--- a/index.html
+++ b/index.html
@@ -10,7 +10,7 @@
-
+
body {
margin: 20px 30px 500px 30px;
@@ -727,4 +727,4 @@ jQuery
})();