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

Optional Search Input Placeholder parameter added

This commit is contained in:
Marchenko Alexandr 2014-01-20 11:38:33 +02:00
parent 9eb12a8906
commit f4886a0afa

View File

@ -799,6 +799,7 @@ the specific language governing permissions and limitations under the Apache Lic
opts.element.prop("autofocus", false); opts.element.prop("autofocus", false);
if (this.autofocus) this.focus(); if (this.autofocus) this.focus();
this.search.attr("placeholder", opts.searchInputPlaceholder);
}, },
// abstract // abstract
@ -3313,7 +3314,8 @@ the specific language governing permissions and limitations under the Apache Lic
selectOnBlur: false, selectOnBlur: false,
adaptContainerCssClass: function(c) { return c; }, adaptContainerCssClass: function(c) { return c; },
adaptDropdownCssClass: function(c) { return null; }, adaptDropdownCssClass: function(c) { return null; },
nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; } nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; },
searchInputPlaceholder: ''
}; };
$.fn.select2.ajaxDefaults = { $.fn.select2.ajaxDefaults = {