forked from science-ation/science-ation
Fix Report dialogs in IE7
This commit is contained in:
parent
fd4e72e1f4
commit
879dc845d9
@ -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 = "<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 {
|
||||
$name = "<a href=\"{$config['SFIABDIRECTORY']}/{$report_custom[-$i->reports_id]['custom_url']}\">
|
||||
{$report_custom[-$i->reports_id]['name']}</a>";
|
||||
|
@ -164,8 +164,8 @@ case 'dialog_gen':
|
||||
window.location.href=dlurl;
|
||||
$('#report_dialog_gen').dialog("close");
|
||||
return false;
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user