]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/changetag.html
Fixes shaarli/Shaarli#46: allow 'javascript:' links sharing
[github/shaarli/Shaarli.git] / tpl / changetag.html
CommitLineData
45034273
SS
1<!DOCTYPE html>
2<html>
246e9b4e
SS
3<head>{include="includes"}
4{if="empty($GLOBALS['disablejquery'])"}<script src="inc/jquery.min.js#"></script><script src="inc/jquery-ui.min.js#"></script>{/if}
5</head>
45034273
SS
6<body onload="document.changetag.fromtag.focus();">
7<div id="pageheader">
8 {include="page.header"}
9 <form method="POST" action="" name="changetag" id="changetag">
10 <input type="hidden" name="token" value="{$token}">
11 Tag: <input type="text" name="fromtag" id="fromtag">
c133612f
V
12 <input type="text" name="totag" id="totag">
13 <input type="submit" name="renametag" value="Rename tag" class="bigbutton">
45034273 14 &nbsp;&nbsp;or&nbsp; <input type="submit" name="deletetag" value="Delete tag" class="bigbutton" onClick="return confirmDeleteTag();"><br>(Case sensitive)</form>
fe16b01e 15<script>function confirmDeleteTag() { var agree=confirm("Are you sure you want to delete this tag from all links ?"); if (agree) return true ; else return false ; }</script>
45034273
SS
16</div>
17{include="page.footer"}
246e9b4e 18{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
fe16b01e 19<script>
246e9b4e
SS
20$(document).ready(function()
21{
22 $('#fromtag').autocomplete({source:'{$source}?ws=singletag',minLength:1});
23});
24</script>
25{/if}
45034273 26</body>
c133612f 27</html>