1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Enable function formatResultCssClass.

This commit is contained in:
jdecuyper 2013-09-03 23:29:42 -05:00
parent e09292d800
commit fa4ce8e382

View File

@ -948,7 +948,6 @@ the specific language governing permissions and limitations under the Apache Lic
}); });
// this is needed because inside val() we construct choices from options and there id is hardcoded // this is needed because inside val() we construct choices from options and there id is hardcoded
opts.id=function(e) { return e.id; }; opts.id=function(e) { return e.id; };
opts.formatResultCssClass = function(data) { return data.css; };
} else { } else {
if (!("query" in opts)) { if (!("query" in opts)) {
@ -3154,7 +3153,7 @@ the specific language governing permissions and limitations under the Apache Lic
sortResults: function (results, container, query) { sortResults: function (results, container, query) {
return results; return results;
}, },
formatResultCssClass: function(data) {return undefined;}, formatResultCssClass: function(data) {return data.css;},
formatSelectionCssClass: function(data, container) {return undefined;}, formatSelectionCssClass: function(data, container) {return undefined;},
formatNoMatches: function () { return "No matches found"; }, formatNoMatches: function () { return "No matches found"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); },