From 921bf0643452b2bd3e1cb059ef9426fd611b7ea8 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 6 Aug 2012 20:35:59 -0700 Subject: [PATCH] fix and clean the new formatSearching() method. closes #301 --- select2.css | 7 ++----- select2.js | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/select2.css b/select2.css index ec021183..cd123e28 100755 --- a/select2.css +++ b/select2.css @@ -310,11 +310,8 @@ Version: @@ver@@ Timestamp: @@timestamp@@ .select2-results .select2-highlighted em { background: transparent; } -.select2-results .select2-no-results { - background: #f4f4f4; - display: list-item; -} - +.select2-results .select2-no-results, +.select2-results .select2-searching, .select2-results .select2-selection-limit { background: #f4f4f4; display: list-item; diff --git a/select2.js b/select2.js index 8af19ce8..b55ae5cb 100755 --- a/select2.js +++ b/select2.js @@ -2196,7 +2196,7 @@ formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; }, formatSelectionTooBig: function (limit) { return "You can only select " + limit + " items"; }, formatLoadMore: function (pageNumber) { return "Loading more results..."; }, - formatSearch: function () { return "Searching..."; }, + formatSearching: function () { return "Searching..."; }, minimumResultsForSearch: 0, minimumInputLength: 0, maximumSelectionSize: 0,