fixed modul menu url, datatable live for duplicate saving
This commit is contained in:
+4
-2
@@ -4,9 +4,9 @@
|
||||
Desc. : JS - Fonia Custom Class v3
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : June 19th, 2009.
|
||||
Last Modified : December 26th, 2025.
|
||||
Last Modified : January 26th, 2026.
|
||||
|
||||
(c) 2009 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2009 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
@@ -772,6 +772,8 @@ class _Request_JSONF extends _Request {
|
||||
$(this.options.data).map((key, item) => {
|
||||
var keyval = item.split("=");
|
||||
if (keyval[0] == 'SID') keyval[1] = parseInt(Math.random() * 99999999);
|
||||
// fixed bug for duplicate saving
|
||||
if (keyval[0] == 'mode_detail') keyval[1] = 'live-data';
|
||||
if ((''+keyval[1]).indexOf('%') != -1) keyval[1] = decodeURIComponent(keyval[1]);
|
||||
return post_data[keyval[0]] = keyval[1];
|
||||
});
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@ final class App {
|
||||
$href1 = $this->apps['WEB_PATH'].'../';
|
||||
$href2 = "";
|
||||
} else {
|
||||
$_host = (isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : $this->apps['PARENT_SITE']);
|
||||
$_host = $_SERVER['HTTP_ORIGIN'] ?? $_SERVER['HTTP_HOST'] ?? $this->apps['PARENT_SITE'];
|
||||
$_host = str_replace(['http://','https://'], "", $_host);
|
||||
if ($this->apps['PARENT_SUB']==true) {
|
||||
$_subs = explode('.', $_host);
|
||||
|
||||
Reference in New Issue
Block a user