* Finish task#36456.

This commit is contained in:
leiyong
2021-03-10 09:57:37 +08:00
parent a98432e958
commit d2734ecacc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -61,10 +61,10 @@ body.menu-hide {padding-left: 0;}
#userNav .dropdown-submenu:focus > a, #userNav .dropdown-submenu:hover > a {background-color: rgba(0,0,0,.2);}
#poweredBy{width: 40%; position: absolute; top: 4px; right: 0; padding: 0;}
#globalSearchDiv{width:50%; float: right; margin-right: 4px;}
#globalSearchDiv{width:52%; float: right; margin-right: 4px;}
@media screen and (max-height: 768px)
{
#globalSearchDiv{width: 60%;}
#globalSearchDiv{width: 62%;}
}
#globalSearchDiv .input-group{width: 82%; float: right; margin-top: 2px;}
@media screen and (max-height: 768px)
+2 -2
View File
@@ -531,7 +531,7 @@ $.extend(
gotoObject:function()
{
objectType = $('#searchType').attr('value');
objectValue = $('input#globalSearchInput').attr('value');
objectValue = $('#globalSearchInput').attr('value');
if(objectType && objectValue)
{
@@ -590,7 +590,7 @@ $(function()
var $this = $(this);
var isActiveType = $this.data('value') === searchType && searchType !== 'all';
$this.closest('li').toggleClass('selected active', isActiveType);
$this.html($this.data('name') + ' <span>#' + (val.length > 4 ? (val.substr(0, 4) + '...') : val) + "</span>");
$this.html($this.data('name') + ' <span>#' + (val.length > 7 ? (val.substr(0, 7) + '...') : val) + "</span>");
if(isActiveType) $dropmenu.addClass('with-active');
});
}