clear button for keyword

This commit is contained in:
Martijn Voncken 2008-06-22 21:59:58 +00:00
parent d6f783abf1
commit b9cde0e267
3 changed files with 6 additions and 5 deletions

View File

@ -55,7 +55,7 @@ menu.register_toolbar_item("start",_("Start"), "start.png" ,TB.torrent_list, "PO
menu.register_toolbar_item("queue_up",_("Queue Up"), "queue-up.png" ,TB.torrent_list, "POST","/torrent/queue/up/", True) menu.register_toolbar_item("queue_up",_("Queue Up"), "queue-up.png" ,TB.torrent_list, "POST","/torrent/queue/up/", True)
menu.register_toolbar_item("queue_down",_("Queue Down"), "queue-down.png" ,TB.torrent_list, "POST","/torrent/queue/down/", True) menu.register_toolbar_item("queue_down",_("Queue Down"), "queue-down.png" ,TB.torrent_list, "POST","/torrent/queue/down/", True)
menu.register_toolbar_item("queue_top",_("Queue Top"), "go-top.png" ,TB.torrent_list, "POST","/torrent/queue/top/", True) menu.register_toolbar_item("queue_top",_("Queue Top"), "go-top.png" ,TB.torrent_list, "POST","/torrent/queue/top/", True)
menu.register_toolbar_item("queue_bottom",_("Queue Down"), "go-bottom.png" ,TB.torrent_list, "POST","/torrent/queue/bottom/", True) menu.register_toolbar_item("queue_bottom",_("Queue Bottom"), "go-bottom.png" ,TB.torrent_list, "POST","/torrent/queue/bottom/", True)
menu.register_toolbar_item("details",_("Details"), "details.png" ,TB.torrent, "GET","/torrent/info/", True) menu.register_toolbar_item("details",_("Details"), "details.png" ,TB.torrent, "GET","/torrent/info/", True)
menu.register_toolbar_item("move",_("Move"), "move.png" ,TB.torrent_list,"POST","/torrent/move/", True) menu.register_toolbar_item("move",_("Move"), "move.png" ,TB.torrent_list,"POST","/torrent/move/", True)
menu.register_toolbar_item("reannounce",_("Reannounce"), "view-refresh.png" ,TB.torrent_list, "POST","/torrent/reannounce/", False) menu.register_toolbar_item("reannounce",_("Reannounce"), "view-refresh.png" ,TB.torrent_list, "POST","/torrent/reannounce/", False)

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

View File

@ -39,13 +39,14 @@ $for tracker, num in filters.tracker:
<div class="title">$_('Keyword')</div> <div class="title">$_('Keyword')</div>
$if get('keyword'): <input type="text" name="keyword" id="keyword" value="$get('keyword')" style="width:100px;padding:0px"
<div style="background-color:#F00">
<input type="text" name="keyword" value="$get('keyword')" style="width:100px"
title="$_('Filter on a keyword')" title="$_('Filter on a keyword')"
/> />
$if get('keyword'): $if get('keyword'):
</div> <button onclick="document.getElementById('keyword').value=''" style="padding:0px;position:relative;top:2px">
<img src="$base/static/images/tango/edit-clear.png" alt="$_('Clear')">
</button>
</div> </div>
</form> </form>