aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerky <derky@phpbb.com>2018-09-15 12:53:11 +0200
committerDerky <derky@phpbb.com>2018-09-15 12:53:11 +0200
commit9ea60e3478e6c645b8091ae10e8c0a594b9708cf (patch)
tree2e6866a9e60beb56b8bb25303eb7f1f5b796f317
parent1991df95190ca3d401d7b60275159c797caaf5af (diff)
parent4d5258b5a3e9595af83ca9192e845fbc22dd7457 (diff)
downloadforums-9ea60e3478e6c645b8091ae10e8c0a594b9708cf.tar
forums-9ea60e3478e6c645b8091ae10e8c0a594b9708cf.tar.gz
forums-9ea60e3478e6c645b8091ae10e8c0a594b9708cf.tar.bz2
forums-9ea60e3478e6c645b8091ae10e8c0a594b9708cf.tar.xz
forums-9ea60e3478e6c645b8091ae10e8c0a594b9708cf.zip
Merge pull request #5339 from senky/ticket/15748
[ticket/15748] Fix toggle alt text
-rw-r--r--phpBB/assets/javascript/core.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 752dfa4ab2..32be1cf6ed 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -935,9 +935,9 @@ phpbb.addAjaxCallback('alt_text', function() {
$anchor.each(function() {
var $this = $(this);
altText = $this.attr('data-alt-text');
- $this.attr('data-alt-text', $this.text());
- $this.attr('title', $.trim(altText));
- $this.text(altText);
+ $this.attr('data-alt-text', $.trim($this.text()));
+ $this.attr('title', altText);
+ $this.children('span').text(altText);
});
});