mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 04:20:32 +02:00
[feature/ajax] Change filter semantics, some minor adjustments
PHPBB3-10270
This commit is contained in:
@@ -338,7 +338,7 @@ phpbb.ajaxify = function(options) {
|
||||
{
|
||||
action = $this.attr('action').replace('&', '&');
|
||||
data = $this.serializeArray();
|
||||
method = $this.attr('method');
|
||||
method = $this.attr('method') || 'GET';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -347,7 +347,7 @@ phpbb.ajaxify = function(options) {
|
||||
method = 'GET';
|
||||
}
|
||||
|
||||
// If filter function returns true, cancel the AJAX functionality,
|
||||
// If filter function returns false, cancel the AJAX functionality,
|
||||
// and return true (meaning that the HTTP request will be sent normally).
|
||||
if (run_filter && options.filter.call(this, data))
|
||||
{
|
||||
|
Reference in New Issue
Block a user