aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-02-09 22:13:34 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-03-31 02:09:25 +0200
commitfc0d2425dcc7fe63cd9ff027a555fe14671d7393 (patch)
treecd3c97f87f2e69ec76767bea431b8684642dee57 /phpBB/assets
parent2ede0b1c811657827c388c4a0559063f4f02f025 (diff)
downloadforums-fc0d2425dcc7fe63cd9ff027a555fe14671d7393.tar
forums-fc0d2425dcc7fe63cd9ff027a555fe14671d7393.tar.gz
forums-fc0d2425dcc7fe63cd9ff027a555fe14671d7393.tar.bz2
forums-fc0d2425dcc7fe63cd9ff027a555fe14671d7393.tar.xz
forums-fc0d2425dcc7fe63cd9ff027a555fe14671d7393.zip
[feature/ajax] Fix the alt_text ajax callback
PHPBB3-10270
Diffstat (limited to 'phpBB/assets')
-rw-r--r--phpBB/assets/javascript/core.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 22865e744d..973d57c6ac 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -409,9 +409,8 @@ phpbb.add_ajax_callback('alt_text', function(data) {
alt_text;
alt_text = el.attr('data-alt-text');
- el.text();
- el.attr('data-alt-text', el.text());
- el.text(el[0].title = alt_text);
+ el.attr('title', alt_text);
+ el.text(alt_text);
});