diff --git a/admin/reports.php b/admin/reports.php index 00f19d4..44d88ac 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -178,8 +178,7 @@ function add_report() edit_report(-1, $('#report').val()); } -function gen_report() -{ +function gen_report() { report_gen($('#report').val()); } @@ -260,7 +259,7 @@ $(document).ready(function() { if($i->reports_id > 0) { // $url = "admin/reports_gen.php?id={$i->reports_id}&show_options=1"; - $name = "reports_id}); return false\">{$i->name}"; + $name = "reports_id})\">{$i->name}"; } else { $name = "reports_id]['custom_url']}\"> {$report_custom[-$i->reports_id]['name']}"; diff --git a/admin/reports_gen.php b/admin/reports_gen.php index 381f671..4327252 100644 --- a/admin/reports_gen.php +++ b/admin/reports_gen.php @@ -164,8 +164,8 @@ case 'dialog_gen': window.location.href=dlurl; $('#report_dialog_gen').dialog("close"); return false; - }, - }, + } + } }); diff --git a/js/sfiab.js b/js/sfiab.js index 359061e..f5616e6 100644 --- a/js/sfiab.js +++ b/js/sfiab.js @@ -62,10 +62,10 @@ function notice_(str) notice_create('notice',str,-1); } -function report_gen(id) -{ +function report_gen(id) { var args="id="+id+"&action=dialog_gen"; $("#debug").load("reports_gen.php?"+args); + return false; } /* Stuff to do after the document loads */