@@ -78,14 +78,14 @@ var bootstrap = function ($, learun) {
$('#step-3').lrtree({
data: treeData.columnList
});
$('#step-4').lrtree({
data: treeData.formList
});
// $('#step-4').lrtree({
// data: treeData.formList
// });
if (!!objectId) {
setTreeData1();
setTreeData2();
setTreeData3();
setTreeData4();
// setTreeData4();
}
}
setTimeout(function () {
@@ -101,13 +101,14 @@ var bootstrap = function ($, learun) {
checkModuleIds = $('#step-1').lrtreeSet('getCheckNodeIds');
$('#step-2 .lr-tree-root [id$="_learun_moduleId"]').parent().hide();
$('#step-3 .lr-tree-root [id$="_learun_moduleId"]').parent().hide();
$('#step-4 .lr-tree-root [id$="_learun_moduleId"]').parent().hide();
// $('#step-4 .lr-tree-root [id$="_learun_moduleId"]').parent().hide();
$.each(checkModuleIds, function (id, item) {
$('#step-2_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show();
$('#step-3_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show();
$('#step-4_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show();
// $('#step-4_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show();
});
} else if (data.step == 3) {
//} else if (data.step == 3) {
} else if (data.step == 2) {
$finish.removeAttr('disabled');
$next.attr('disabled', 'disabled');
@@ -140,7 +141,7 @@ var bootstrap = function ($, learun) {
var buttonList = [], columnList = [], formList = [];
var checkButtonIds = $('#step-2').lrtreeSet('getCheckNodeIds');
var checkColumnIds = $('#step-3').lrtreeSet('getCheckNodeIds');
var checkFormIds = $('#step-4').lrtreeSet('getCheckNodeIds');
// var checkFormIds = $('#step-4').lrtreeSet('getCheckNodeIds');
$.each(checkButtonIds, function (id, item) {
@@ -153,11 +154,11 @@ var bootstrap = function ($, learun) {
columnList.push(item);
}
});
$.each(checkFormIds, function (id, item) {
if (item.indexOf('_learun_moduleId') == -1) {
formList.push(item);
}
});
// $.each(checkFormIds, function (id, item) {
// if (item.indexOf('_learun_moduleId') == -1) {
// formList.push(item);
// }
// });
var postData = {