manage.js 1.05 KB
var appTreeId;
var tabs = 1;
$(function () {
    //设置tree区域的高度
    var treeHight = $(window).height() - 65;
    $("#leftTree").height(treeHight);
    $("#index").height(treeHight-40);
    window.onresize = function () {
        setTimeout(function(){
            var treeHight = $(window).height() - 65;
            $("#leftTree").height(treeHight);
            $("#index").height(treeHight-40);
        },300);
    };
    $(".modelist").css('border-bottom','2px solid #30b5ff');
    $(".modepage").css("border-bottom",'0px solid #30b5ff');
});

$(".modelist").live("click",
    function(){
        $(this).css('border-bottom','2px solid #30b5ff');
        $(".modepage").css('border-bottom','0px solid #30b5ff');
        $("#listFrame").attr('src','list.jsp?appid='+appTreeId);
        tabs = 1;
    });

$(".modepage").live("click",
    function(){
       $(this).css('border-bottom','2px solid #30b5ff');
       $(".modelist").css("border-bottom",'0px solid #30b5ff');
       $("#listFrame").attr('src','page.jsp?appid='+appTreeId);
       tabs = 2;
    });