1
0
mirror of synced 2024-11-26 06:46:04 +03:00

set maxlength on search when maximumInputLength is defined. closes #538

This commit is contained in:
Igor Vaynberg 2013-05-10 00:43:30 -07:00
parent 26751cb157
commit 4e1873fb9d

View File

@ -724,6 +724,10 @@ the specific language governing permissions and limitations under the Apache Lic
this.monitorSource(); this.monitorSource();
} }
if (opts.maximumInputLength !== null) {
this.search.attr("maxlength", opts.maximumInputLength);
}
var disabled = opts.element.prop("disabled"); var disabled = opts.element.prop("disabled");
if (disabled === undefined) disabled = false; if (disabled === undefined) disabled = false;
this.enable(!disabled); this.enable(!disabled);