From fe11c268232bedff5dac9ba47f112bd613c1b358 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 7 Jul 2023 15:12:45 +0800 Subject: [PATCH] * Code for finish task #96510. --- module/program/js/browse.ui.js | 2 +- module/program/ui/browse.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/program/js/browse.ui.js b/module/program/js/browse.ui.js index f704592753..01f3606bd1 100644 --- a/module/program/js/browse.ui.js +++ b/module/program/js/browse.ui.js @@ -48,7 +48,7 @@ $(document).on('click', '.batch-btn', function() const postData = new FormData(); checkedList.forEach((id) => postData.append('projectIdList[]', id)); - postAndLoadPage($(this).data('url'), postData); + postAndLoadPage($(this).data('url'), postData, '', {app: 'project'}); }) /* Put the checked projects to cookie for exporting. */ diff --git a/module/program/ui/browse.html.php b/module/program/ui/browse.html.php index 76ab7677bc..bc2729b703 100644 --- a/module/program/ui/browse.html.php +++ b/module/program/ui/browse.html.php @@ -96,7 +96,7 @@ toolbar ])), ); -$footToolbar = common::hasPriv('project', 'batchEdit') ? array('items' => array(array('text' => $lang->project->edit, 'class' => 'btn batch-btn size-sm primary', 'data-url' => createLink('project', 'batchEdit')))) : null; +$footToolbar = common::hasPriv('project', 'batchEdit') ? array('items' => array(array('text' => $lang->project->edit, 'class' => 'btn batch-btn size-sm secondary', 'data-url' => createLink('project', 'batchEdit')))) : null; dtable ( set::cols($cols),