mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10272] Removed code that was prevent event propogation in AJAX.
PHPBB3-10272
This commit is contained in:
committed by
Igor Wiedler
parent
ba56e34b6d
commit
64df9d1406
@@ -248,8 +248,8 @@ phpbb.ajaxify = function(options) {
|
||||
is_form = elements.is('form'),
|
||||
event_name = is_form ? 'submit' : 'click';
|
||||
|
||||
elements.bind(event_name, function() {
|
||||
var action, method, data, that = this, $this = $(this);
|
||||
elements.bind(event_name, function(event) {
|
||||
var action, method, data, submit, that = this, $this = $(this);
|
||||
|
||||
if ($this.find('input[type="submit"][data-clicked]').attr('data-ajax') === 'false')
|
||||
{
|
||||
@@ -361,7 +361,7 @@ phpbb.ajaxify = function(options) {
|
||||
|
||||
if ($this.find('input[type="submit"][data-clicked]'))
|
||||
{
|
||||
var submit = $this.find('input[type="submit"][data-clicked]');
|
||||
submit = $this.find('input[type="submit"][data-clicked]');
|
||||
data.push({
|
||||
name: submit.attr('name'),
|
||||
value: submit.val()
|
||||
@@ -379,7 +379,7 @@ phpbb.ajaxify = function(options) {
|
||||
// and return true (meaning that the HTTP request will be sent normally).
|
||||
if (run_filter && !options.filter.call(this, data))
|
||||
{
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
phpbb.loading_alert();
|
||||
@@ -392,7 +392,7 @@ phpbb.ajaxify = function(options) {
|
||||
error: error_handler
|
||||
});
|
||||
|
||||
return false;
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
if (is_form) {
|
||||
|
Reference in New Issue
Block a user