]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix showing job size value on jobs on volume page
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 25 Jul 2019 16:59:43 +0000 (18:59 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Dec 2019 14:55:26 +0000 (15:55 +0100)
gui/baculum/protected/Web/Layouts/Main.tpl

index 545bfd801554e8bc8abd81a8895f1143b3453acf..bc1b99c4dd9b9b48c6bd32d55e3b7cd757de2dc8 100644 (file)
@@ -31,6 +31,9 @@
                                <span class="w3-tag w3-large w3-purple w3-right w3-padding-small w3-margin-top w3-margin-right">
                                        <i class="fa fa-cogs w3-large"></i> <%[ Running jobs: ]%> <span id="running_jobs"></span>
                                </span>
+                               <script type="text/javascript">
+                                       var SIZE_VALUES_UNIT = '<%=(count($this->web_config) > 0 && key_exists('size_values_unit', $this->web_config['baculum'])) ? $this->web_config['baculum']['size_values_unit'] : 'decimal'%>';
+                               </script>
                                <com:TContentPlaceHolder ID="Main" />
                                <!-- Footer -->
                                <footer class="w3-container w3-right-align w3-small"><%[ Version: ]%> <%=Params::BACULUM_VERSION%></footer>
@@ -54,7 +57,6 @@
                </div>
 <script type="text/javascript">
 var is_small = $('#small').is(':visible');
-var SIZE_VALUES_UNIT = '<%=(count($this->web_config) > 0 && key_exists('size_values_unit', $this->web_config['baculum'])) ? $this->web_config['baculum']['size_values_unit'] : 'decimal'%>';
 
 var oMonitor;
 var default_refresh_interval = 60000;