mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge pull request #5339 from senky/ticket/15748
[ticket/15748] Fix toggle alt text
This commit is contained in:
commit
9ea60e3478
1 changed files with 3 additions and 3 deletions
|
@ -935,9 +935,9 @@ phpbb.addAjaxCallback('alt_text', function() {
|
||||||
$anchor.each(function() {
|
$anchor.each(function() {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
altText = $this.attr('data-alt-text');
|
altText = $this.attr('data-alt-text');
|
||||||
$this.attr('data-alt-text', $this.text());
|
$this.attr('data-alt-text', $.trim($this.text()));
|
||||||
$this.attr('title', $.trim(altText));
|
$this.attr('title', altText);
|
||||||
$this.text(altText);
|
$this.children('span').text(altText);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue