diff --git a/module/testcase/js/common.js b/module/testcase/js/common.js index cc45cac9e0..8212bf093a 100644 --- a/module/testcase/js/common.js +++ b/module/testcase/js/common.js @@ -228,6 +228,8 @@ function setModules(productID, branchID, num) */ function setStories() { + if($('#story').length == 0) return false; + productID = $('#product').val(); branch = $('#branch').val(); moduleID = $('#module').val(); @@ -270,6 +272,8 @@ function setPreview() function setScenes() { + if($('#sceneIdBox').length == 0) return false; + productID = $('#product').val(); branch = $('#branch').val(); moduleID = $('#module').val();