### Eclipse Workspace Patch 1.0
#P dominiquedecooman
Index: sites/all/modules/own/jquery_multiselect/jquery/js/ui.multiselect.js
===================================================================
--- sites/all/modules/own/jquery_multiselect/jquery/js/ui.multiselect.js	(revision 293)
+++ sites/all/modules/own/jquery_multiselect/jquery/js/ui.multiselect.js	(working copy)

@@ -118,7 +118,19 @@
 		});
 		
 		this.container.find(".add-all").click(function() {
-			that._populateLists(that.element.find('option').attr('selected', 'selected'));
+			var elementsNoSearch = that.element.find('option.m-select');
+					
+			if (elementsNoSearch.length > 0) {
+			  var elementsToMove = that.element.find('option[class="m-select"], option:selected').attr('selected', 'selected');
+			  
+			  that._populateLists(elementsToMove);
+			}
+			else {
+			  var elementsToMove = that.element.find('option').attr('selected', 'selected');
+			  that._populateLists(elementsToMove);
+			}
+			elementsToMove.removeClass("m-select");
 			return false;
 		});
 	},

@@ -230,17 +242,22 @@
 		
 		var term = $.trim(input.val().toLowerCase()), scores = [];
 		
+		$("option").removeClass('m-select');
 		if (!term) {
 			rows.show();
+			
+			
 		} else {
 			rows.hide();
-
 			cache.each(function(i) {
 				if (this.indexOf(term)>-1) { scores.push(i); }
 			});
 
 			$.each(scores, function() {
 				$(rows[this]).show();
+				var el = $(rows[this])
+				var title = el.attr('title');
+				$("option:contains("+title+")").addClass('m-select');
 			});
 		}
 	},
