From 71db3237c35ee06c91b10ec9c0c784ce80d639c0 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Thu, 13 Oct 2016 15:44:40 +0000 Subject: [PATCH] first try to fix https://github.com/dg9vh/MMDVMHost-Dashboard/issues/51 --- include/lh_ajax.php | 15 ++++++--------- include/localtx_ajax.php | 16 +++++++--------- version.php | 2 +- 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/include/lh_ajax.php b/include/lh_ajax.php index 085dd13..e09e207 100644 --- a/include/lh_ajax.php +++ b/include/lh_ajax.php @@ -34,15 +34,12 @@ $totalLH = count($lastHeard); $(document).ready(function(){ var lastHeardT = $('#lastHeard').dataTable( { "aaSorting": [[0,'desc']], - "ajax": '/ajax.php?section=lastHeard', + 0) { + $request = substr($request,0,strpos($request,"index.php")); + } + ?> + "ajax": '/ajax.php?section=lastHeard', "deferRender": true } ); diff --git a/include/localtx_ajax.php b/include/localtx_ajax.php index 7dd6716..d1a1124 100644 --- a/include/localtx_ajax.php +++ b/include/localtx_ajax.php @@ -34,15 +34,13 @@ $totalLH = count($lastHeard); $(document).ready(function(){ var localTxT = $('#localTx').dataTable( { "aaSorting": [[0,'desc']], - "ajax": '/ajax.php?section=localTx', + + 0) { + $request = substr($request,0,strpos($request,"index.php")); + } + ?> + "ajax": '/ajax.php?section=localTx', "deferRender": true } ); diff --git a/version.php b/version.php index 5e8d05c..8b0cd94 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@