Browse Source

Also add echapJS in the Search and Notification drawers

pull/856/head
Timothée Jaussoin 6 years ago
parent
commit
1cad2b3c14
  1. 4
      app/widgets/Notifications/_notifications.tpl
  2. 2
      app/widgets/Search/_search_results.tpl

4
app/widgets/Notifications/_notifications.tpl

@ -21,10 +21,10 @@
<i class="material-icons">person</i>
</span>
{/if}
<span class="control icon green active" title="{$c->__('button.accept')}" onclick="Notifications_ajaxAccept('{$value->jid}');">
<span class="control icon green active" title="{$c->__('button.accept')}" onclick="Notifications_ajaxAccept('{$value->jid|echapJS}');">
<i class="material-icons">check</i>
</span>
<span class="control icon red active" title="{$c->__('button.refuse')}" onclick="Notifications_ajaxRefuse('{$value->jid}');">
<span class="control icon red active" title="{$c->__('button.refuse')}" onclick="Notifications_ajaxRefuse('{$value->jid|echapJS}');">
<i class="material-icons">close</i>
</span>
<span class="control icon gray active" onclick="MovimUtils.redirect('{$c->route('contact', $value->jid)}')">

2
app/widgets/Search/_search_results.tpl

@ -64,7 +64,7 @@
<span class="control icon active gray" onclick="MovimUtils.reload('{$c->route('contact', $value->jid)}')">
<i class="material-icons">person</i>
</span>
<span class="control icon active gray" onclick="Search.chat('{$value->jid}')">
<span class="control icon active gray" onclick="Search.chat('{$value->jid|echapJS}')">
<i class="material-icons">comment</i>
</span>
<p class="normal line">{$value->truename}</p>

Loading…
Cancel
Save