show data area when change editModeSelect

This commit is contained in:
YouWei Zhao 2018-07-09 17:14:53 +08:00
parent 2798c0cf58
commit 2444464d60
3 changed files with 8 additions and 2 deletions

View File

@ -701,6 +701,7 @@ editor.prototype.listen = function () {
editor_mode.onmode('loc');
//editor_mode.loc();
//tip.whichShow = 1;
if(editor.isMobile)editor.showdataarea(false);
}
var chooseInRight = document.getElementById('chooseInRight');

View File

@ -632,6 +632,7 @@ editor_mode = function (editor) {
editModeSelect.onchange = function () {
editor_mode.onmode('nextChange');
editor_mode.onmode(editModeSelect.value);
if(editor.isMobile)editor.showdataarea(false);
}
if (Boolean(callback)) callback();

View File

@ -454,13 +454,17 @@ var editor_mobile_listen=function(){
var right=document.getElementById('right');
var mobileeditdata=document.getElementById('mobileeditdata');
mobileview.children[0].onclick=function(){
editor.showdataarea=function(callShowMode){
mid.style='z-index:-1;opacity: 0;';
right.style='z-index:-1;opacity: 0;';
mobileeditdata.style='';
editor.mode.showMode(editModeSelect.value);
if(callShowMode)editor.mode.showMode(editModeSelect.value);
editor.hideMidMenu();
}
mobileview.children[0].onclick=function(){
editor.showdataarea(true)
}
mobileview.children[1].onclick=function(){
mid.style='';
right.style='z-index:-1;opacity: 0;';