(trunk web) remove cruft from Transmission.js' setupSearchBox()

This commit is contained in:
Jordan Lee 2011-08-21 14:16:27 +00:00
parent d42973b607
commit 97016a2149
1 changed files with 3 additions and 3 deletions

View File

@ -250,20 +250,20 @@ Transmission.prototype =
{
var tr = this;
var search_box = $('#torrent_search');
search_box.bind('keyup click', {transmission: this}, function(event) {
search_box.bind('keyup click', function(event) {
tr.setSearch(this.value);
});
if (!$.browser.safari)
{
search_box.addClass('blur');
search_box[0].value = 'Filter';
search_box.bind('blur', {transmission: this}, function(event) {
search_box.bind('blur', function(event) {
if (this.value == '') {
$(this).addClass('blur');
this.value = 'Filter';
tr.setSearch(null);
}
}).bind('focus', {}, function(event) {
}).bind('focus', function(event) {
if ($(this).is('.blur')) {
this.value = '';
$(this).removeClass('blur');