* [task#131758,doing,0.5h] ajax load parent type by scope.

This commit is contained in:
zhouxin
2024-11-11 10:39:21 +08:00
committed by 宋辰轩
parent 5d021ba1d2
commit 7abf8585f3
+16 -9
View File
@@ -46,17 +46,24 @@ function changeRoot()
var confirmRoot = type == 'doc' ? confirmRoot4Doc : confirmRoot;
if(moduleRoot != root)
{
zui.Modal.confirm(confirmRoot).then(result =>
if(type == 'docTemplate')
{
if(result)
ajaxLoadModules(root, 0, 'docTemplate', moduleID);
}
else
{
zui.Modal.confirm(confirmRoot).then(result =>
{
ajaxLoadModules(root, 0, type != 'doc' ? 'story' : type, moduleID);
}
else
{
$('[name=root]').zui('picker').$.setValue(moduleRoot);
}
});
if(result)
{
ajaxLoadModules(root, 0, type != 'doc' ? 'story' : type, moduleID);
}
else
{
$('[name=root]').zui('picker').$.setValue(moduleRoot);
}
});
}
}
else
{