mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15748] Trim whitespace before storing in data attribute
PHPBB3-15748
This commit is contained in:
parent
367f884d01
commit
4d5258b5a3
1 changed files with 2 additions and 2 deletions
|
@ -935,8 +935,8 @@ 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.attr('data-alt-text', $.trim($this.text()));
|
||||
$this.attr('title', altText);
|
||||
$this.children('span').text(altText);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue