|
@@ -53,6 +53,7 @@ var rationLibObj = {
|
|
|
}
|
|
|
},
|
|
|
loadStdRation: function (rationLibID) {
|
|
|
+ $.bootstrapLoading.start();
|
|
|
var that = this;
|
|
|
var showRationChapterTree = function (datas) {
|
|
|
var rationChapterTree = idTree.createNew({id: 'ID', pid: 'ParentID', nid: 'NextSiblingID', rootId: -1, autoUpdate: false});
|
|
@@ -86,8 +87,10 @@ var rationLibObj = {
|
|
|
|
|
|
CommonAjax.post('/complementaryRation/api/getRationTree', {userId: userID, rationRepId: rationLibID}, function (datas) {
|
|
|
showRationChapterTree(datas);
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}, function () {
|
|
|
showRationChapterTree([]);
|
|
|
+ $.bootstrapLoading.end();
|
|
|
});
|
|
|
},
|
|
|
//双击隐藏显示
|