mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge remote-tracking branch 'marc1706/ticket/13666' into 3.1.x
* marc1706/ticket/13666: [ticket/13666] Remove data-clicked attribute from all of form's submit buttons
This commit is contained in:
@@ -408,7 +408,9 @@ phpbb.ajaxify = function(options) {
|
|||||||
$elements.find('input:submit').click(function () {
|
$elements.find('input:submit').click(function () {
|
||||||
var $this = $(this);
|
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');
|
$this.attr('data-clicked', 'true');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user