1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-11 01:55:24 +02:00

[ticket/10271] Renamed the "act" js variable to "action".

PHPBB3-10271
This commit is contained in:
Callum Macrae 2011-10-22 16:42:22 +01:00 committed by Igor Wiedler
parent 8a2f5f3269
commit 415d33f20d

View File

@ -226,7 +226,7 @@ phpbb.ajaxify = function(options, refresh, callback) {
} }
selector.click(function() { selector.click(function() {
var act, data, path, that = this; var action, data, path, that = this;
if ($(this).data('ajax') == false) if ($(this).data('ajax') == false)
{ {
@ -302,21 +302,21 @@ phpbb.ajaxify = function(options, refresh, callback) {
var run_exception = (typeof options.exception === 'function'); var run_exception = (typeof options.exception === 'function');
if (is_form) if (is_form)
{ {
act = /action\[([a-z]+)\]/.exec(this.name); action = /action\[([a-z]+)\]/.exec(this.name);
data = decodeURI($(this).closest('form').serialize()); data = decodeURI($(this).closest('form').serialize());
path = $(this).closest('form').attr('action').replace('&', '&'); path = $(this).closest('form').attr('action').replace('&', '&');
if (act) if (action)
{ {
act = act[1] action = action[1]
data += '&action=' + act; data += '&action=' + action;
} }
else else
{ {
data += '&' + this.name + '=' + this.value; data += '&' + this.name + '=' + this.value;
} }
if (run_exception && options.exception($(this).parents('form'), act, data)) if (run_exception && options.exception($(this).parents('form'), action, data))
{ {
return true; return true;
} }