From f4e228636b98113e9c65e426ce394eca9698dafc Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 9 May 2020 23:29:23 +0200 Subject: [PATCH] baculum: Fix validators in run job modal window --- gui/baculum/protected/Web/Portlets/RunJob.php | 4 +- gui/baculum/protected/Web/Portlets/RunJob.tpl | 71 ++++++++++++++----- 2 files changed, 54 insertions(+), 21 deletions(-) diff --git a/gui/baculum/protected/Web/Portlets/RunJob.php b/gui/baculum/protected/Web/Portlets/RunJob.php index 18891cf8a..3bff836da 100644 --- a/gui/baculum/protected/Web/Portlets/RunJob.php +++ b/gui/baculum/protected/Web/Portlets/RunJob.php @@ -3,7 +3,7 @@ * Bacula(R) - The Network Backup Solution * Baculum - Bacula web interface * - * Copyright (C) 2013-2019 Kern Sibbald + * Copyright (C) 2013-2020 Kern Sibbald * * The main author of Baculum is Marcin Haba. * The original author of Bacula is Kern Sibbald, with contributions @@ -27,7 +27,7 @@ Prado::using('System.Web.UI.ActiveControls.TActiveCustomValidator'); Prado::using('System.Web.UI.ActiveControls.TActiveCheckBox'); Prado::using('System.Web.UI.ActiveControls.TCallback'); Prado::using('System.Web.UI.ActiveControls.TActiveLabel'); -Prado::using('System.Web.UI.ActiveControls.TActiveButton'); +Prado::using('System.Web.UI.ActiveControls.TActiveLinkButton'); Prado::using('Application.Web.Portlets.Portlets'); /** diff --git a/gui/baculum/protected/Web/Portlets/RunJob.tpl b/gui/baculum/protected/Web/Portlets/RunJob.tpl index 809b5bb4b..0c930a272 100644 --- a/gui/baculum/protected/Web/Portlets/RunJob.tpl +++ b/gui/baculum/protected/Web/Portlets/RunJob.tpl @@ -5,13 +5,6 @@

<%[ Run job ]%><%=$this->getJobName() ? ' - ' . $this->getJobName() : ''%>

-
 
@@ -86,7 +79,32 @@
 
- + + + var verify_opts = document.getElementById('<%=$this->JobToVerifyOptions->ClientID%>'); + sender.enabled = (verify_opts.value === 'jobid'); + + + + + var verify_opts = document.getElementById('<%=$this->JobToVerifyOptions->ClientID%>'); + sender.enabled = (verify_opts.value === 'jobid'); + +
@@ -120,7 +138,22 @@
 
- + +
@@ -142,12 +175,16 @@
-- 2.47.3