(trunk web) remove cruft from Transmission.js' setupSearchBox()
This commit is contained in:
parent
d42973b607
commit
97016a2149
|
@ -250,20 +250,20 @@ Transmission.prototype =
|
||||||
{
|
{
|
||||||
var tr = this;
|
var tr = this;
|
||||||
var search_box = $('#torrent_search');
|
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);
|
tr.setSearch(this.value);
|
||||||
});
|
});
|
||||||
if (!$.browser.safari)
|
if (!$.browser.safari)
|
||||||
{
|
{
|
||||||
search_box.addClass('blur');
|
search_box.addClass('blur');
|
||||||
search_box[0].value = 'Filter';
|
search_box[0].value = 'Filter';
|
||||||
search_box.bind('blur', {transmission: this}, function(event) {
|
search_box.bind('blur', function(event) {
|
||||||
if (this.value == '') {
|
if (this.value == '') {
|
||||||
$(this).addClass('blur');
|
$(this).addClass('blur');
|
||||||
this.value = 'Filter';
|
this.value = 'Filter';
|
||||||
tr.setSearch(null);
|
tr.setSearch(null);
|
||||||
}
|
}
|
||||||
}).bind('focus', {}, function(event) {
|
}).bind('focus', function(event) {
|
||||||
if ($(this).is('.blur')) {
|
if ($(this).is('.blur')) {
|
||||||
this.value = '';
|
this.value = '';
|
||||||
$(this).removeClass('blur');
|
$(this).removeClass('blur');
|
||||||
|
|
Loading…
Reference in New Issue