diff --git a/extension/lite/story/ext/ui/batchedit.html.php b/extension/lite/story/ext/ui/batchedit.html.php index fc61d41cf9..d788bf2f4a 100644 --- a/extension/lite/story/ext/ui/batchedit.html.php +++ b/extension/lite/story/ext/ui/batchedit.html.php @@ -17,7 +17,7 @@ jsVar('meeting', isset($meetings) ? $meetings : array()); jsVar('researchReports', isset($researchReports) ? $researchReports : array()); jsVar('productStoryList', $productStoryList); -if(!empty($twinsTip)) js("zui.Modal.alert({message: '{$twinsTip}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'});\n"); +if(!empty($twinsTip)) pageJS("zui.Modal.alert({message: '{$twinsTip}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'});\n"); $fields = $config->story->form->batchEdit; $showFields = array('module', 'title', 'estimate', 'pri', 'assignedTo', 'status', 'closedBy', 'closedReason', 'keywords'); diff --git a/lib/zin/core/context.func.php b/lib/zin/core/context.func.php index aec0a86f17..cc24fbbdaf 100644 --- a/lib/zin/core/context.func.php +++ b/lib/zin/core/context.func.php @@ -14,7 +14,7 @@ namespace zin; require_once __DIR__ . DS . 'context.class.php'; -function js() +function pageJS() { call_user_func_array('\zin\context::js', func_get_args()); } diff --git a/module/story/ui/batchclose.html.php b/module/story/ui/batchclose.html.php index 6f3036b856..53aedcb6e1 100644 --- a/module/story/ui/batchclose.html.php +++ b/module/story/ui/batchclose.html.php @@ -12,7 +12,7 @@ namespace zin; jsVar('twinsCount', $twinsCount); jsVar('langTwins', $lang->story->twins . ': '); -if(!empty($errorTips)) js("zui.Modal.alert({message: '{$errorTips}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'});\n"); +if(!empty($errorTips)) pageJS("zui.Modal.alert({message: '{$errorTips}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'});\n"); unset($lang->story->reasonList['subdivided']); foreach($lang->story->reasonList as $key => $value) diff --git a/module/story/ui/batchedit.html.php b/module/story/ui/batchedit.html.php index 5a42954ce8..1a3b14606d 100644 --- a/module/story/ui/batchedit.html.php +++ b/module/story/ui/batchedit.html.php @@ -19,7 +19,7 @@ jsVar('researchReports', isset($researchReports) ? $researchReports : array()); jsVar('productStoryList', $productStoryList); jsVar('storyType', $storyType); -if(!empty($twinsTip)) js("zui.Modal.alert({message: '{$twinsTip}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'});\n"); +if(!empty($twinsTip)) pageJS("zui.Modal.alert({message: '{$twinsTip}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'});\n"); $fields = $config->story->form->batchEdit;