This commit is contained in:
caoyanyi
2023-03-10 10:15:47 +08:00
parent ef62dca574
commit 723dec97eb
2 changed files with 21 additions and 8 deletions
+8 -8
View File
@@ -1,12 +1,12 @@
$(function()
{
var showHeight = $('#main').height() - $('#mainMenu').height() - 40;
$('#editWin').height(showHeight);
$('#extendWin').height(showHeight);
var showHeight = $('#main').height() - $('#mainMenu').height() - 40;
$('#editWin').height(showHeight);
$('#extendWin').height(showHeight);
$('.side-col a').click(function()
{
$('.side-col a.active').removeClass('active');
$(this).addClass('active');
});
$('.side-col a').click(function()
{
$(this).closest('.side-col').find('a.text-primary').removeClass('text-primary');
$(this).addClass('text-primary');
});
});
+13
View File
@@ -38,6 +38,19 @@ $(function()
$this.addClass('expandable-hitarea').removeClass('collapsable-hitarea');
}
});
$('.has-list a').on('click', function()
{
$('.has-list a.text-primary').removeClass('text-primary active');
$(this).addClass('text-primary active');
}).on('mouseover', function()
{
$('.has-list a:not(.active)').removeClass('text-primary');
$(this).addClass('text-primary');
}).on('mouseout', function()
{
if(!$(this).hasClass('active')) $(this).removeClass('text-primary');
});
});
</script>
<iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='hidden'></iframe>