Fix Report dialogs in IE7

This commit is contained in:
james 2010-02-03 16:02:45 +00:00
parent fd4e72e1f4
commit 879dc845d9
3 changed files with 6 additions and 7 deletions

View File

@ -178,8 +178,7 @@ function add_report()
edit_report(-1, $('#report').val()); edit_report(-1, $('#report').val());
} }
function gen_report() function gen_report() {
{
report_gen($('#report').val()); report_gen($('#report').val());
} }
@ -260,7 +259,7 @@ $(document).ready(function() {
if($i->reports_id > 0) { if($i->reports_id > 0) {
// $url = "admin/reports_gen.php?id={$i->reports_id}&show_options=1"; // $url = "admin/reports_gen.php?id={$i->reports_id}&show_options=1";
$name = "<a href=\"#\" onclick=\"report_gen({$i->reports_id}); return false\">{$i->name}</a>"; $name = "<a href=\"#\" onclick=\"return report_gen({$i->reports_id})\">{$i->name}</a>";
} else { } else {
$name = "<a href=\"{$config['SFIABDIRECTORY']}/{$report_custom[-$i->reports_id]['custom_url']}\"> $name = "<a href=\"{$config['SFIABDIRECTORY']}/{$report_custom[-$i->reports_id]['custom_url']}\">
{$report_custom[-$i->reports_id]['name']}</a>"; {$report_custom[-$i->reports_id]['name']}</a>";

View File

@ -164,8 +164,8 @@ case 'dialog_gen':
window.location.href=dlurl; window.location.href=dlurl;
$('#report_dialog_gen').dialog("close"); $('#report_dialog_gen').dialog("close");
return false; return false;
}, }
}, }
}); });
</script> </script>

View File

@ -62,10 +62,10 @@ function notice_(str)
notice_create('notice',str,-1); notice_create('notice',str,-1);
} }
function report_gen(id) function report_gen(id) {
{
var args="id="+id+"&action=dialog_gen"; var args="id="+id+"&action=dialog_gen";
$("#debug").load("reports_gen.php?"+args); $("#debug").load("reports_gen.php?"+args);
return false;
} }
/* Stuff to do after the document loads */ /* Stuff to do after the document loads */