]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/csv_import/report.html
ActionBar: Verwendung beim CSV-Import
[mfinanz.git] / templates / webpages / csv_import / report.html
index f2ea4212c846e0afb1d6526be811460e1949cc66..77e69601ea02b1699bdbcd6137085eba196de0dc 100644 (file)
 [%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %]
 
 <script type='text/javascript'>
-  $(function(){ [%- IF SELF.reporterror %] kivi.clear_flash('info',0);kivi.display_flash('error','[% SELF.reporterror %]',0); [%- ELSE %][%- IF SELF.report.test_mode %] $('#action_import').show() [%- END %][%- END %] });
+  $(function(){
+    [%- IF SELF.reporterror %]
+      kivi.clear_flash('info',0);
+      kivi.display_flash('error','[% SELF.reporterror %]',0);
+    [%- ELSIF SELF.report.test_mode %]
+      kivi.ActionBar.Action('#action_import').enable();
+    [%- END %]
+  });
 </script>