mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -65,7 +65,7 @@ xe.msg_select_menu = "{$lang->msg_select_menu}";
|
|||
<!--@if(strpos(strtolower(Context::get('act')),'admin') || Context::get('module') == 'admin')-->
|
||||
{@$isAdminKind = true}
|
||||
<!--@end-->
|
||||
<body{Context::getBodyClass()} style="margin-top:30px!important"|cond="$logged_info->is_admin=='Y' && !$isAdminKind && Context::get('current_module_info')->module_type == 'view' && Context::get('admin_bar') != 'false'">
|
||||
<body{Context::getBodyClass()}>
|
||||
<include target="../../modules/admin/tpl/admin_bar.html" cond="$logged_info->is_admin=='Y' && !$isAdminKind && Context::get('current_module_info')->module_type == 'view' && Context::get('admin_bar') != 'false'" />
|
||||
{Context::getBodyHeader()}
|
||||
{$content}
|
||||
|
|
@ -76,5 +76,49 @@ xe.msg_select_menu = "{$lang->msg_select_menu}";
|
|||
<block loop="$js_body_files => $key, $js_file">
|
||||
<block cond="$js_file['targetie']"><!--[if {$js_file['targetie']}]></block><script src="{$js_file['file']}"></script><block cond="$js_file['targetie']"><![endif]--></block>
|
||||
</block>
|
||||
|
||||
<script cond="$logged_info->is_admin=='Y' && !$isAdminKind && Context::get('current_module_info')->module_type == 'view' && Context::get('admin_bar') != 'false'">
|
||||
jQuery(function($){
|
||||
function get_body_margin(position){
|
||||
var margin = $('body').css('margin-' + position);
|
||||
var unit = margin.substr(-2);
|
||||
|
||||
if(unit == 'px'){
|
||||
margin = parseInt(margin);
|
||||
}else{
|
||||
margin = 0;
|
||||
}
|
||||
|
||||
return margin;
|
||||
}
|
||||
|
||||
var height = $('#adminBar').outerHeight();
|
||||
var margin_top = get_body_margin('top');
|
||||
var new_margin_top = margin_top + height;
|
||||
|
||||
$('body').css({
|
||||
'margin-top': new_margin_top + 'px'
|
||||
})
|
||||
|
||||
var $fixed_elements = $('*').filter(function(){
|
||||
if($(this).get(0) == $('#adminBar').get(0)) return false;
|
||||
if($(this).css("position") !== 'fixed') return false;
|
||||
|
||||
var invisible = false;
|
||||
if(!$(this).is(':visible')){
|
||||
invisible = true;
|
||||
$(this).show();
|
||||
}
|
||||
var top = $(this).position().top;
|
||||
if(invisible){
|
||||
$(this).hide();
|
||||
}
|
||||
if(top > height) return false;
|
||||
|
||||
$(this).css('top', top + height);
|
||||
return true;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue