From 7247a7d4b535768d478fb76a4a416d9040a12a33 Mon Sep 17 00:00:00 2001 From: mayue Date: Wed, 10 Nov 2021 11:13:37 +0800 Subject: [PATCH] * Finish task #43892. --- module/common/view/datatable.fix.html.php | 21 +++++++++++++++------ module/datatable/control.php | 1 + module/datatable/lang/en.php | 4 ++++ module/datatable/lang/zh-cn.php | 4 ++++ module/story/model.php | 2 +- 5 files changed, 25 insertions(+), 7 deletions(-) diff --git a/module/common/view/datatable.fix.html.php b/module/common/view/datatable.fix.html.php index fbb3031a4e..14cd957edc 100644 --- a/module/common/view/datatable.fix.html.php +++ b/module/common/view/datatable.fix.html.php @@ -6,7 +6,7 @@ $(function() { - $('#sidebar .cell .text-center:last').append("datatable->moduleSetting?>
"); + $('#sidebar .cell .text-center:last').append("moduleName=='product' ? $lang->datatable->listSetting : $lang->datatable->moduleSetting?>
"); var addSettingButton = function() @@ -36,10 +36,12 @@ $(function() $('#setShowModule').click(function() { if('app->user->account?>' == 'guest') return; - datatableId = ''; - var value = $('#showModuleModal input[name="showModule"]:checked').val(); - var allModule = $('#showModuleModal input[name="showAllModule"]:checked').val(); - if(typeof allModule === 'undefined') allModule = false; + datatableId = ''; + var value = $('#showModuleModal input[name="showModule"]:checked').val(); + var allModule = $('#showModuleModal input[name="showAllModule"]:checked').val(); + var showBranch = $('#showModuleModal input[name="showBranch"]:checked').val(); + if(typeof allModule === 'undefined') allModule = false; + if(typeof showBranch === 'undefined') showBranch = false; $.ajax( { type: "POST", @@ -50,6 +52,7 @@ $(function() name: 'showModule', value: value, allModule: allModule, + showBranch: showBranch, }, success:function(){window.location.reload();}, url: 'createLink('datatable', 'ajaxSave')?>' @@ -80,7 +83,7 @@ $(function()