Merge pull request #2055 from mac2000/feature-request-search-input-placeholder
Optional Search Input Placeholder parameter added
This commit is contained in:
commit
9cb18478a5
@ -800,6 +800,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
opts.element.prop("autofocus", false);
|
||||
if (this.autofocus) this.focus();
|
||||
|
||||
this.search.attr("placeholder", opts.searchInputPlaceholder);
|
||||
},
|
||||
|
||||
// abstract
|
||||
@ -3328,7 +3329,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
adaptContainerCssClass: function(c) { return c; },
|
||||
adaptDropdownCssClass: function(c) { return null; },
|
||||
nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; },
|
||||
hideSelectionFromResult: function(selectedObject) { return undefined; }
|
||||
hideSelectionFromResult: function(selectedObject) { return undefined; },
|
||||
searchInputPlaceholder: ''
|
||||
};
|
||||
|
||||
$.fn.select2.ajaxDefaults = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user