From: Marcin Haba Date: Sat, 9 May 2020 21:29:23 +0000 (+0200) Subject: baculum: Fix validators in run job modal window X-Git-Tag: Release-9.6.4~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e228636b98113e9c65e426ce394eca9698dafc;p=thirdparty%2Fbacula.git baculum: Fix validators in run job modal window --- 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 @@