mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-19 23:32:02 +02:00
[ticket/13666] Remove data-clicked attribute from all of form's submit buttons
PHPBB3-13666
This commit is contained in:
parent
18de60c0e0
commit
bbfbb3f1fa
@ -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…
x
Reference in New Issue
Block a user