added a workaround for piler-in.js for IE8

This commit is contained in:
SJ 2013-04-22 21:30:26 +02:00
parent 1be0ed1061
commit fd0aa835bb

View File

@ -488,9 +488,9 @@ var Piler =
Piler.assemble_folder_restrictions(); Piler.assemble_folder_restrictions();
Piler.Searches.Expert = { Piler.Searches.Expert = {
search : $('input#_search').val().trim(), search: $.trim($('input#_search').val()),
searchtype : 'expert', searchtype: 'expert',
ref: $('#ref').val(), ref: $.trim($('#ref').val()),
folders: Piler.folders, folders: Piler.folders,
extra_folders: Piler.extra_folders extra_folders: Piler.extra_folders
} }
@ -525,21 +525,21 @@ var Piler =
Piler.assemble_folder_restrictions(); Piler.assemble_folder_restrictions();
Piler.Searches.Complex = { Piler.Searches.Complex = {
from : $('input#xfrom', z).val().trim(), from : $.trim($('input#xfrom', z).val()),
to : $('input#xto', z).val().trim(), to : $.trim($('input#xto', z).val()),
subject : $('input#xsubject', z).val().trim(), subject : $.trim($('input#xsubject', z).val()),
body : $('input#xbody', z).val().trim(), body : $.trim($('input#xbody', z).val()),
tag : $('input#xtag', z).val().trim(), tag : $.trim($('input#xtag', z).val()),
note : $('input#xnote', z).val().trim(), note : $.trim($('input#xnote', z).val()),
attachment_type : $('input#xhas_attachment', z)[0].checked ? 'any' : '', attachment_type : $('input#xhas_attachment', z)[0].checked ? 'any' : '',
date1 : $('input#date1', z).val().trim(), date1 : $.trim($('input#date1', z).val()),
date2 : $('input#date2', z).val().trim(), date2 : $.trim($('input#date2', z).val()),
searchtype : 'simple', searchtype : 'simple',
folders: Piler.folders, folders: Piler.folders,
extra_folders: Piler.extra_folders extra_folders: Piler.extra_folders
} }
Piler.load_search_results();//, Piler.assemble_search_term( count ), 0); Piler.load_search_results();
$('#searchpopup1').hide(); $('#searchpopup1').hide();
}, },