Prevent buttons from submitting form
This commit is contained in:
		| @ -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; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user