diff --git a/src/main/resources/templates/distribute/save.html b/src/main/resources/templates/distribute/save.html index 51305f3..4fd4490 100644 --- a/src/main/resources/templates/distribute/save.html +++ b/src/main/resources/templates/distribute/save.html @@ -489,7 +489,9 @@ width: '1040px', height: '98%', onClose: function(data) { - templateObj = top.dialog.dialogData.templateObj; + if(!$.isEmptyObject(top.dialog.dialogData.templateObj)) { + templateObj = top.dialog.dialogData.templateObj; + } if(!$.isEmptyObject(templateObj)) { $('#taskListDiv').hide(); getTaskRateMsg(templateObj.taskRateId); diff --git a/src/main/resources/templates/distribute/update.html b/src/main/resources/templates/distribute/update.html index 6f0fab1..7856770 100644 --- a/src/main/resources/templates/distribute/update.html +++ b/src/main/resources/templates/distribute/update.html @@ -471,7 +471,9 @@ width: '1040px', height: '98%', onClose: function(data) { - templateObj = top.dialog.dialogData.templateObj; + if(!$.isEmptyObject(top.dialog.dialogData.templateObj)) { + templateObj = top.dialog.dialogData.templateObj; + } if(!$.isEmptyObject(templateObj)) { $('#taskListDiv').hide(); listList = [];