From 9c843c898aba1fbc367b1e7efce8af9b77ab9bcb Mon Sep 17 00:00:00 2001 From: Noel Dieschburg Date: Tue, 7 Jun 2011 14:25:04 +0200 Subject: [PATCH] Subreports : corrects javascript syntax error --- main/reports/index.php | 4 ++-- main/reports/reports.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/reports/index.php b/main/reports/index.php index 7189867acd..3f477ccea7 100644 --- a/main/reports/index.php +++ b/main/reports/index.php @@ -209,8 +209,8 @@ foreach($reports_template as $key => $value) $.ajax({ url: uri, success: function(data) { - elem.closest('.result').nextAll().html(''); - elem.closest('.result').next().html(data); + $(elem).closest('.result').nextAll().html(''); + $(elem).closest('.result').next().html(data); } }); } diff --git a/main/reports/reports.php b/main/reports/reports.php index 769f140460..d3ed7f1e41 100644 --- a/main/reports/reports.php +++ b/main/reports/reports.php @@ -58,8 +58,8 @@ if ($_REQUEST['format'] == 'directlink') { $.ajax({ url: uri, success: function(data) { - elem.closest('.result').nextAll().html(''); - elem.closest('.result').next().html(data); + $(elem).closest('.result').nextAll().html(''); + $(elem).closest('.result').next().html(data); } }); }