mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Change flair buttons to use javascript://void(0).
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<form action="/post/selectflair" method="post">
|
||||
<div class="flairselection">
|
||||
<div class="flairremove">
|
||||
(<a href="javascript://">${_('remove flair')}</a>)
|
||||
(<a href="javascript://void(0)">${_('remove flair')}</a>)
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="name" value="${thing.target_name}">
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
if len(title) > 10:
|
||||
title = title[:7] + '...'
|
||||
%>
|
||||
<a class="title" href="javascript://void">${title}</a>
|
||||
<a class="title" href="javascript://void(0)">${title}</a>
|
||||
%if thing.flair_position == 'right':
|
||||
${flair()}
|
||||
%endif
|
||||
|
||||
@@ -45,7 +45,7 @@ from r2.models import USER_FLAIR, LINK_FLAIR
|
||||
%if c.site.link_flair_position != 'right':
|
||||
<%call expr="flair()" />
|
||||
%endif
|
||||
<a class="title loggedin" href="javascript://">Link sample</a>
|
||||
<a class="title loggedin" href="javascript://void(0)">Link sample</a>
|
||||
%if c.site.link_flair_position == 'right':
|
||||
<%call expr="flair()" />
|
||||
%endif
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
%endif
|
||||
%if c.site.link_flair_position and thing.show_flair:
|
||||
<li>
|
||||
<a class="flairselectbtn" href="javascript://">${_('flair')}</a>
|
||||
<a class="flairselectbtn" href="javascript://void(0)">${_('flair')}</a>
|
||||
<div class="flairselector drop-choices"></div>
|
||||
<form>
|
||||
<input type="hidden" name="link" value="${thing.thing._fullname}">
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
${flair(thing, enabled=thing.force_show_flair)}
|
||||
%endif
|
||||
%if thing.include_flair_selector:
|
||||
(<a class="flairselectbtn" href="javascript://">${_('edit')}</a>)
|
||||
(<a class="flairselectbtn" href="javascript://void(0)">${_('edit')}</a>)
|
||||
<div class="flairselector drop-choices"></div>
|
||||
<form><input type="hidden" name="name" value="${thing.name}"></form>
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user