1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

[file search] modified ui

This commit is contained in:
llj
2013-03-08 16:45:04 +08:00
committed by lins05
parent c22c31c80a
commit 2bb4532fb9
5 changed files with 118 additions and 115 deletions

View File

@@ -13,6 +13,13 @@ if ($('.messages')[0]) {
setTimeout(function() { $('.messages').addClass('hide'); }, 10000);
}
// search: disable submit when input nothing
$('.search-form').submit(function() {
if (!$.trim($(this).find('.search-input').val())) {
return false;
}
});
//highlight the tr when mouse hover on it
$("table tr:gt(0), .checkbox-label").hover(
function() {
@@ -56,6 +63,7 @@ if ($.browser.msie) {
$('button, input[type="checkbox"], input[type="radio"], input[type="submit"]').focus(function() {
$(this).blur();
});
$('.search-input').css({'line-height':$('.search-input').css('height')});
}
/*