clear-button->clear image /me rants about default-buttons

This commit is contained in:
Martijn Voncken 2008-06-22 22:16:40 +00:00
parent b0cc183c0c
commit c22cf5cf69
2 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,9 @@ state = {
function $(el_id){
return document.getElementById(el_id)
}
function el(el_id){
return document.getElementById(el_id)
}
function get_row(id){
return $('torrent_' + id);
}

View File

@ -43,9 +43,10 @@ $for tracker, num in filters.tracker:
title="$_('Filter on a keyword')"
/>
$if get('keyword'):
<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>
<img src="$base/static/images/tango/edit-clear.png" alt="$_('Clear')"
onclick="el('keyword').value='';el('category_form').submit();"
>
<!--1st button widget is default , i dont want that here, using an image instead :(-->
</div>