Merge pull request #5339 from senky/ticket/15748

[ticket/15748] Fix toggle alt text
This commit is contained in:
Derky 2018-09-15 12:53:11 +02:00
commit 9ea60e3478

View file

@ -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);
});
});