mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:48:56 +00:00
[feature/ajax] Fix the alt_text ajax callback
PHPBB3-10270
This commit is contained in:
parent
2ede0b1c81
commit
fc0d2425dc
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue