Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/admin_templates/tree.tpl
<inp2:m_Set skip_last_template="1"/> | <inp2:m_Set skip_last_template="1"/> | ||||
<inp2:m_include t="incs/header" nobody="yes" noform="yes"/> | <inp2:m_include t="incs/header" nobody="yes" noform="yes"/> | ||||
<inp2:m_NoDebug/> | <inp2:m_NoDebug/> | ||||
<body class="tree-body" onresize="onTreeFrameResize();"> | <body class="tree-body" onresize="onTreeFrameResize();"> | ||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
var $save_timer = null, | var $save_timer = null, | ||||
$last_width = parseInt('<inp2:m_GetConfig name="MenuFrameWidth"/>'); | $last_width = parseInt('<inp2:m_GetConfig name="MenuFrameWidth"/>'); | ||||
function credits(url) { | function credits(url) { | ||||
openwin(url, 'credits', 280, 520); | openwin(url, 'credits', 280, 520); | ||||
} | } | ||||
function onTreeFrameResize() { | function onTreeFrameResize() { | ||||
var $frameset = $('#sub_frameset', window.parent.document); | var $menu_frame = $('#menu_frame', window.parent.document), | ||||
if (!$frameset.length) { | $width; | ||||
if (!$menu_frame.length) { | |||||
return ; | return; | ||||
} | } | ||||
var $width = $frameset.attr('cols').split(',')[0]; | $width = $menu_frame.width(); | ||||
if (($width <= 0) || ($width == $last_width)) { | if (($width <= 0) || ($width == $last_width)) { | ||||
// don't save zero width | // don't save zero width | ||||
return ; | return; | ||||
} | } | ||||
clearTimeout($save_timer); | clearTimeout($save_timer); | ||||
$save_timer = setTimeout( function() {saveFrameWidth($width);}, 2000); | $save_timer = setTimeout( function() {saveFrameWidth($width);}, 2000); | ||||
} | } | ||||
function saveFrameWidth($width) { | function saveFrameWidth($width) { | ||||
getFrame('head').$FrameResizer.OpenWidth = $width; | getFrame('head').$FrameResizer.OpenWidth = $width; | ||||
▲ Show 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | |||||
</inp2:m_DefineElement> | </inp2:m_DefineElement> | ||||
<inp2:m_RenderElement name="container_node_fix" config_var="DebugOnlyFormConfigurator" section="in-portal:forms"/> | <inp2:m_RenderElement name="container_node_fix" config_var="DebugOnlyFormConfigurator" section="in-portal:forms"/> | ||||
<inp2:m_RenderElement name="container_node_fix" config_var="DebugOnlyPromoBlockGroupConfigurator" section="in-portal:promo_block_groups"/> | <inp2:m_RenderElement name="container_node_fix" config_var="DebugOnlyPromoBlockGroupConfigurator" section="in-portal:promo_block_groups"/> | ||||
</script> | </script> | ||||
<!--## when form is on top, then 100% height is broken ##--> | <!--## when form is on top, then 100% height is broken ##--> | ||||
<inp2:m_RenderElement name="kernel_form"/> | <inp2:m_RenderElement name="kernel_form"/> | ||||
<inp2:m_include t="incs/footer"/> | <inp2:m_include t="incs/footer"/> | ||||
No newline at end of file |