aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript/core.js
diff options
context:
space:
mode:
authorCallum Macrae <callum@lynxphp.com>2011-10-22 16:44:27 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-03-31 02:09:20 +0200
commiteabc6d29c4ef87a2f599dd81e98e42120e1ad993 (patch)
tree34480e35cb3fa5bb8d7a6a61280a91599470a2cc /phpBB/assets/javascript/core.js
parent415d33f20dd09483b151ae8253c2d97a47f5a9ff (diff)
downloadforums-eabc6d29c4ef87a2f599dd81e98e42120e1ad993.tar
forums-eabc6d29c4ef87a2f599dd81e98e42120e1ad993.tar.gz
forums-eabc6d29c4ef87a2f599dd81e98e42120e1ad993.tar.bz2
forums-eabc6d29c4ef87a2f599dd81e98e42120e1ad993.tar.xz
forums-eabc6d29c4ef87a2f599dd81e98e42120e1ad993.zip
[ticket/10271] Reduced calls to $ in phpbb.ajaxify.
Diffstat (limited to 'phpBB/assets/javascript/core.js')
-rw-r--r--phpBB/assets/javascript/core.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index bb3f10ac0f..e092fa3df6 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -226,9 +226,9 @@ phpbb.ajaxify = function(options, refresh, callback) {
}
selector.click(function() {
- var action, data, path, that = this;
+ var action, data, path, that = this, $this = $(this);
- if ($(this).data('ajax') == false)
+ if ($this.data('ajax') == false)
{
return true;
}
@@ -303,8 +303,8 @@ phpbb.ajaxify = function(options, refresh, callback) {
if (is_form)
{
action = /action\[([a-z]+)\]/.exec(this.name);
- data = decodeURI($(this).closest('form').serialize());
- path = $(this).closest('form').attr('action').replace('&amp;', '&');
+ data = decodeURI($this.closest('form').serialize());
+ path = $this.closest('form').attr('action').replace('&amp;', '&');
if (action)
{
@@ -316,7 +316,7 @@ phpbb.ajaxify = function(options, refresh, callback) {
data += '&' + this.name + '=' + this.value;
}
- if (run_exception && options.exception($(this).parents('form'), action, data))
+ if (run_exception && options.exception($this.parents('form'), action, data))
{
return true;
}
@@ -325,7 +325,7 @@ phpbb.ajaxify = function(options, refresh, callback) {
}
else
{
- if (run_exception && options.exception($(this)))
+ if (run_exception && options.exception($this))
{
return true;
}