Commit 03f02d8f authored by hbcui1984's avatar hbcui1984

hello mui:父模板webview隐藏动画结束后,再隐藏子webview

parent 029e5f44
......@@ -83,14 +83,15 @@
var contentWebview = null;
mui.back = function() {
var current = plus.webview.currentWebview();
current.hide('auto');
setTimeout(function() {
document.getElementById("title").className = 'mui-title mui-fadeout';
if(contentWebview==null){
contentWebview = current.children()[0];
}
contentWebview.hide("none");
}, 200);
current.hide('auto',function () {
setTimeout(function() {
document.getElementById("title").className = 'mui-title mui-fadeout';
if(contentWebview==null){
contentWebview = current.children()[0];
}
contentWebview.hide("none");
}, 200);
});
}
var titleElem = document.getElementById("title")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment