Site edit mobile view toggle option UI cleaning.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12139 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-11-06 10:13:29 +00:00
parent ef08a0921c
commit e877496921
2 changed files with 5 additions and 13 deletions

View file

@ -198,7 +198,10 @@ body>.x{max-width:none !important}
#design .x_icon-zoom-in{position:absolute;right:4px;bottom:4px;width:24px;height:24px;background-color:#fff;opacity:.75;filter:alpha(opacity:75);background-position:-331px 5px}
#design .x_icon-zoom-in:after{content:normal}
#design .mask{position:absolute;width:100%;height:100%;top:0;left:0}
#design._mobile_view_disabled #mobile .shadow{display:none}
#design._mobile_view_disabled #mobile .shadow,
#design._mobile_view_disabled._mobileMode .nav,
#design._mobileMode .langDesktop,
#design._pcMode .langMobile{display:none}
/* Layout */
#layout li ul._edit_menu {display:none}
#layout li.selected ul._edit_menu {display:block}

View file

@ -320,7 +320,7 @@
</script>
</ul>
<div class="btnBoth" style="position:absolute;bottom:0;left:0;margin:0;width:100%">
<button type="reset" class="x_btn x_btn-warning x_pull-left _btn_cancel">{$lang->cmd_cancel}</button>
<button type="reset" class="x_btn x_pull-left _btn_cancel">{$lang->cmd_cancel}</button>
<button type="button" class="x_btn x_btn-primary x_pull-right _btn_save">
<span class="langDesktop">{$lang->desktop_settings}</span>
<span class="langMobile">{$lang->mobile_settings}</span>
@ -2377,17 +2377,6 @@ jQuery(function($){
$('#design').removeClass('_mobile_view_disabled').find('.mvOption>:checkbox').attr('checked','checked');
}
$('._preview_form .x_nav a').click(function(){
var $this = $(this);
if($this.is('[href="#pc"]')){
//$('.langDesktop, #design .nav').show();
$('.langMobile').hide();
} else if($this.is('[href="#mobile"]')) {
//$('.langDesktop, #design._mobile_view_disabled .nav').hide();
$('.langMobile').show();
}
});
if($._xeAdminVar.sOpenDeisgnWith && $._xeAdminVar.sOpenDeisgnWith === "M"){
$('#design .x_tabbable a[href="#mobile"]').click();
}else{