[ticket/10271] Renamed an unhelpful variable name in core.js.

PHPBB3-10271
This commit is contained in:
Callum Macrae 2011-11-30 16:48:38 +00:00 committed by Igor Wiedler
parent d1134f9a90
commit eee0624a69

View file

@ -225,14 +225,14 @@ 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 selector = $((typeof options === 'string') ? options : options.selector); var elements = $((typeof options === 'string') ? options : options.selector);
var is_form = selector.is('form'); var is_form = elements.is('form');
if (is_form) if (is_form)
{ {
selector = selector.find('input:submit'); elements = elements.find('input:submit');
} }
selector.click(function() { elements.click(function() {
var action, data, path, that = this, $this = $(this); var action, data, path, that = this, $this = $(this);
if ($this.data('ajax') == false) if ($this.data('ajax') == false)