mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch '3.1.x'
* 3.1.x: [ticket/13666] Remove data-clicked attribute from all of form's submit buttons
This commit is contained in:
commit
3ae0bb23b6
1 changed files with 3 additions and 1 deletions
|
@ -408,7 +408,9 @@ phpbb.ajaxify = function(options) {
|
|||
$elements.find('input:submit').click(function () {
|
||||
var $this = $(this);
|
||||
|
||||
$this.siblings('[data-clicked]').removeAttr('data-clicked');
|
||||
// Remove data-clicked attribute from any submit button of form
|
||||
$this.parents('form:first').find('input:submit[data-clicked]').removeAttr('data-clicked');
|
||||
|
||||
$this.attr('data-clicked', 'true');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue