Bug 5877 : Offline circulation improvements : upload all files, apply at once
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / aqplan.tt
index f6f92ae..10ca4ce 100644 (file)
@@ -15,7 +15,7 @@
             var arr = document.getElementsByName('est_total')
 
             for ( var i=0, len=arr.length; i<len; ++i ){
-                    var tot = arr[i].innerhtml;
+                    var tot = arr[i].innerHTML;
 
                     if (tot == 'NaN') {
                         _alertString += "\n- " + _("One or more cell values is non-numeric");
@@ -145,8 +145,12 @@ YAHOO.util.Event.onAvailable("popmenu", function () {
     <tbody>
     [% FOREACH budget_line IN budget_lines %]
     [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
-
-        <td align="left"[% IF ( budget_line.budget_lock ) %] class="locked" title="Fund locked"[% END %]><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_id=[% budget_line.budget_id %]&amp;budget_period_id=[% budget_line.budget_period_id %]">[% budget_line.budget_name_indent %]</a></td>
+        [% IF ( budget_line.budget_lock ) %]
+            <td align="left" class="locked" title="Fund locked">
+        [% ELSE %]
+            <td align="left">
+        [% END %]
+        <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_id=[% budget_line.budget_id %]&amp;budget_period_id=[% budget_line.budget_period_id %]">[% budget_line.budget_name_indent %]</a></td>
         <td><span id="budget_tot_formatted_[% budget_line.budget_id %]">[% budget_line.budget_amount_formatted %]&nbsp;</span>