Merge pull request #669 from friday/fix/prevent-buttons-from-submitting-form
Prevent buttons from submitting form (v3)
This commit is contained in:
commit
f89ddb2f1b
@ -1511,6 +1511,10 @@
|
||||
attributes = {};
|
||||
}
|
||||
|
||||
if (!('type' in attributes)) {
|
||||
attributes.type = 'button';
|
||||
}
|
||||
|
||||
if ('class' in attributes) {
|
||||
if (attributes.class.indexOf(player.config.classNames.control) === -1) {
|
||||
attributes.class += ' ' + player.config.classNames.control;
|
||||
|
Loading…
x
Reference in New Issue
Block a user