Merge pull request #173 from zhaouv/editor-mobile-ui

show data area when change editModeSelect
This commit is contained in:
Zhang Chen 2018-07-09 17:26:12 +08:00 committed by GitHub
commit f74b8fd136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;';