Merge pull request #173 from zhaouv/editor-mobile-ui
show data area when change editModeSelect
This commit is contained in:
commit
f74b8fd136
@ -701,6 +701,7 @@ editor.prototype.listen = function () {
|
|||||||
editor_mode.onmode('loc');
|
editor_mode.onmode('loc');
|
||||||
//editor_mode.loc();
|
//editor_mode.loc();
|
||||||
//tip.whichShow = 1;
|
//tip.whichShow = 1;
|
||||||
|
if(editor.isMobile)editor.showdataarea(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
var chooseInRight = document.getElementById('chooseInRight');
|
var chooseInRight = document.getElementById('chooseInRight');
|
||||||
|
|||||||
@ -632,6 +632,7 @@ editor_mode = function (editor) {
|
|||||||
editModeSelect.onchange = function () {
|
editModeSelect.onchange = function () {
|
||||||
editor_mode.onmode('nextChange');
|
editor_mode.onmode('nextChange');
|
||||||
editor_mode.onmode(editModeSelect.value);
|
editor_mode.onmode(editModeSelect.value);
|
||||||
|
if(editor.isMobile)editor.showdataarea(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Boolean(callback)) callback();
|
if (Boolean(callback)) callback();
|
||||||
|
|||||||
@ -454,13 +454,17 @@ var editor_mobile_listen=function(){
|
|||||||
var right=document.getElementById('right');
|
var right=document.getElementById('right');
|
||||||
var mobileeditdata=document.getElementById('mobileeditdata');
|
var mobileeditdata=document.getElementById('mobileeditdata');
|
||||||
|
|
||||||
mobileview.children[0].onclick=function(){
|
|
||||||
|
editor.showdataarea=function(callShowMode){
|
||||||
mid.style='z-index:-1;opacity: 0;';
|
mid.style='z-index:-1;opacity: 0;';
|
||||||
right.style='z-index:-1;opacity: 0;';
|
right.style='z-index:-1;opacity: 0;';
|
||||||
mobileeditdata.style='';
|
mobileeditdata.style='';
|
||||||
editor.mode.showMode(editModeSelect.value);
|
if(callShowMode)editor.mode.showMode(editModeSelect.value);
|
||||||
editor.hideMidMenu();
|
editor.hideMidMenu();
|
||||||
}
|
}
|
||||||
|
mobileview.children[0].onclick=function(){
|
||||||
|
editor.showdataarea(true)
|
||||||
|
}
|
||||||
mobileview.children[1].onclick=function(){
|
mobileview.children[1].onclick=function(){
|
||||||
mid.style='';
|
mid.style='';
|
||||||
right.style='z-index:-1;opacity: 0;';
|
right.style='z-index:-1;opacity: 0;';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user