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:
parent
8a2f5f3269
commit
415d33f20d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user