mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner: spinner casing now sets itself a unique id based on the id of the original input textbox. If no id exists in the original then no id is set to the casing.
This commit is contained in:
parent
bf66a8e140
commit
993bb9adfd
@ -138,6 +138,14 @@ $.widget('ui.spinner', {
|
||||
})
|
||||
.end();
|
||||
|
||||
// Give the spinner casing a unique id only if one exists in original input
|
||||
// - this should aid targetted customisations if a page contains multiple instances
|
||||
this.element.attr('id', function(){
|
||||
if (this.id) {
|
||||
$(this).parent().attr('id', this.id+'-ui-spinner');
|
||||
}
|
||||
});
|
||||
|
||||
// DataList: Set contraints for object length and step size.
|
||||
// Manipulate height of spinner.
|
||||
this._items = this.element.children().length;
|
||||
|
Loading…
Reference in New Issue
Block a user