mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
[feature/ajax] Only allow object argument for phpbb.ajaxify
PHPBB3-10270
This commit is contained in:
parent
a12b7a5c64
commit
d96b07a745
1 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ phpbb.parse_querystring = function(string) {
|
||||||
* For more info, view the following page on the phpBB wiki:
|
* For more info, view the following page on the phpBB wiki:
|
||||||
* http://wiki.phpbb.com/JavaScript_Function.phpbb.ajaxify
|
* http://wiki.phpbb.com/JavaScript_Function.phpbb.ajaxify
|
||||||
*
|
*
|
||||||
* @param object options Options, if a string will be the selector.
|
* @param object options Options.
|
||||||
* @param bool/function refresh If we are sent back a refresh, should it be
|
* @param bool/function refresh If we are sent back a refresh, should it be
|
||||||
* acted upon? This can either be true / false / a function.
|
* acted upon? This can either be true / false / a function.
|
||||||
* @param function callback Callback to call on completion of event. Has
|
* @param function callback Callback to call on completion of event. Has
|
||||||
|
@ -242,7 +242,7 @@ phpbb.parse_querystring = function(string) {
|
||||||
* that was returned and (if it is a form) the form action.
|
* that was returned and (if it is a form) the form action.
|
||||||
*/
|
*/
|
||||||
phpbb.ajaxify = function(options, refresh, callback) {
|
phpbb.ajaxify = function(options, refresh, callback) {
|
||||||
var elements = $((typeof options === 'string') ? options : options.selector);
|
var elements = $(options.selector);
|
||||||
var is_form = elements.is('form');
|
var is_form = elements.is('form');
|
||||||
if (is_form)
|
if (is_form)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue