From 8ac17c037e79553d2dba281fcca54fa6f9ae6f9a Mon Sep 17 00:00:00 2001 From: Piyush Vijay Date: Tue, 31 Jul 2018 19:04:06 +0530 Subject: [PATCH] Remove .js extension from tbl_relation.php related files for dynamic loading. Signed-Off-By: Piyush Vijay --- js/src/consts/files.js | 5 +++-- .../classes/Controllers/Table/TableRelationController.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/src/consts/files.js b/js/src/consts/files.js index e709c311bf..67d2c9b023 100644 --- a/js/src/consts/files.js +++ b/js/src/consts/files.js @@ -35,7 +35,7 @@ const PhpToJsFileMapping = { db_import: ['import'], tbl_structure: ['tbl_structure'], tbl_indexes: [], - tbl_relation: [], + tbl_relation: ['tbl_relation'], tbl_replace: [] }; @@ -68,7 +68,8 @@ const JsFileList = [ 'db_tracking', 'db_central_columns', 'indexes', - 'tbl_structure' + 'tbl_structure', + 'tbl_relation' ]; export { diff --git a/libraries/classes/Controllers/Table/TableRelationController.php b/libraries/classes/Controllers/Table/TableRelationController.php index 4b3b66a0a6..ef7ad3596e 100644 --- a/libraries/classes/Controllers/Table/TableRelationController.php +++ b/libraries/classes/Controllers/Table/TableRelationController.php @@ -120,7 +120,7 @@ class TableRelationController extends TableController $this->response->getHeader()->getScripts()->addFiles( [ - 'tbl_relation.js', + 'tbl_relation', 'indexes' ] );