From 2f8eabeb75b85a3e78b67737e512a0b461b8ce29 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Fri, 24 Nov 2023 10:42:20 +0800 Subject: [PATCH] * Hide button when hasn't filter. --- module/metric/ui/ajaxgetmultiplemetricbox.html.php | 4 ++-- module/metric/ui/previewmultiple.html.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/metric/ui/ajaxgetmultiplemetricbox.html.php b/module/metric/ui/ajaxgetmultiplemetricbox.html.php index df5d6f56f4..96d56c3766 100644 --- a/module/metric/ui/ajaxgetmultiplemetricbox.html.php +++ b/module/metric/ui/ajaxgetmultiplemetricbox.html.php @@ -64,7 +64,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $metric, $metricID) ( set::width('full'), $formGroups, - formGroup + !empty($formGroups) ? formGroup ( setClass('query-btn'), btn @@ -73,7 +73,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $metric, $metricID) set::text($this->lang->metric->query->action), set::onclick("window.handleQueryClick($metricID, 'multiple')") ) - ) + ) : null ), set::actions(array()) ); diff --git a/module/metric/ui/previewmultiple.html.php b/module/metric/ui/previewmultiple.html.php index 87979fda58..a1a77158d6 100644 --- a/module/metric/ui/previewmultiple.html.php +++ b/module/metric/ui/previewmultiple.html.php @@ -274,7 +274,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $current) ( set::width('full'), $formGroups, - formGroup + !empty($formGroups) ? formGroup ( setClass('query-btn'), btn @@ -283,7 +283,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $current) set::text($this->lang->metric->query->action), set::onclick("window.handleQueryClick($current->id, 'multiple')") ) - ) + ) : null ), set::actions(array()) );