mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Use type button to avoid undesired submits
This commit is contained in:
parent
7d18930231
commit
d8dc2ded59
@ -34,7 +34,7 @@ $.widget('ui.spinner', {
|
||||
.wrap('<div>')
|
||||
.parent()
|
||||
.addClass('ui-spinner')
|
||||
.append('<button class="ui-spinner-up">▲</button>')
|
||||
.append('<button class="ui-spinner-up" type="button">▲</button>')
|
||||
.find('.ui-spinner-up')
|
||||
.bind('mousedown', function(e) {
|
||||
$(this).addClass('ui-spinner-pressed');
|
||||
@ -73,7 +73,7 @@ $.widget('ui.spinner', {
|
||||
self._propagate('change', e);
|
||||
})
|
||||
.end()
|
||||
.append('<button class="ui-spinner-down">▼</button>')
|
||||
.append('<button class="ui-spinner-down" type="button">▼</button>')
|
||||
.find('.ui-spinner-down')
|
||||
.bind('mousedown', function(e) {
|
||||
$(this).addClass('ui-spinner-pressed');
|
||||
|
Loading…
Reference in New Issue
Block a user