]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix delete job button visibility
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 12 Dec 2019 06:15:55 +0000 (07:15 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 17 Dec 2019 17:19:49 +0000 (18:19 +0100)
gui/baculum/protected/Web/Pages/JobHistoryView.page

index b5705e04d892ee3bf482ba6c03b3f966f5ad2562..47445932786d3931ae3031fd7f3cddaf92b0e575 100644 (file)
@@ -49,9 +49,9 @@
                >
                        <prop:Text><%=Prado::localize('Run job again')%> &nbsp;<i class="fa fa-undo"></i></prop:Text>
                </com:TActiveLinkButton>
-               <button id="btn_job_delete" type="button" class="w3-button w3-red w3-margin-bottom" onclick="$('#job_delete_confirm').show();">
+               <com:TActiveLinkButton ID="DeleteBtn" CssClass="w3-button w3-red w3-margin-bottom" Attributes.onclick="$('#job_delete_confirm').show();">
                        <%[ Delete ]%> &nbsp;<i class="fa fa-trash-alt"></i>
-               </button>
+               </com:TActiveLinkButton>
                <com:TActiveLinkButton
                        ID="RestoreBtn"
                        Attributes.onclick="document.location = '<%=$this->Service->constructUrl('RestoreWizard', array('jobid' => $this->getJobId()))%>';"
@@ -525,10 +525,9 @@ $(function() {
                        <div class="w3-center">
                                <button type="button" class="w3-button w3-red" onclick="$('#job_delete_confirm').hide();"><i class="fa fa-times"></i> &nbsp;<%[ Cancel ]%></button>
                                <com:TActiveLinkButton
-                                       ID="DeleteBtn"
+                                       ID="DeleteBtnConfirm"
                                        CssClass="w3-button w3-green"
                                        OnClick="delete"
-                                       Display="None"
                                        ClientSide.OnSuccess="document.location.href='<%=$this->Service->constructUrl('JobHistoryList')%>';"
                                >
                                        <prop:Text><%=Prado::localize('Delete')%> &nbsp;<i class="fa fa-trash-alt"></i></prop:Text>