cleanup: remove OA-DEBUG console logs after production fix verified
Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
parent
0f96f86bef
commit
fc7ec87f1e
File diff suppressed because one or more lines are too long
@ -3,8 +3,8 @@
|
|||||||
"/js/app.js.map": "/js/app.js.map?id=e510d0c8e8113a8bff4529b8e1c13224",
|
"/js/app.js.map": "/js/app.js.map?id=e510d0c8e8113a8bff4529b8e1c13224",
|
||||||
"/js/admin.js": "/js/admin.js?id=45f119b4d8a4031e553de0e58da9c5a9",
|
"/js/admin.js": "/js/admin.js?id=45f119b4d8a4031e553de0e58da9c5a9",
|
||||||
"/js/admin.js.map": "/js/admin.js.map?id=f233901bc34b10bee95b595ce8d3a32d",
|
"/js/admin.js.map": "/js/admin.js.map?id=f233901bc34b10bee95b595ce8d3a32d",
|
||||||
"/js/module.js": "/js/module.js?id=f98c11324e9864e787413a0ddd42455f",
|
"/js/module.js": "/js/module.js?id=02083549c9a0ab1f1d13db38672c8c16",
|
||||||
"/js/module.js.map": "/js/module.js.map?id=57a27e41113588262b9d8f30cfa8086a",
|
"/js/module.js.map": "/js/module.js.map?id=6c11781336014be142a17afb04abcc4f",
|
||||||
"/js/components.js": "/js/components.js?id=aac1b5221c918d1afb98a34e79620cde",
|
"/js/components.js": "/js/components.js?id=aac1b5221c918d1afb98a34e79620cde",
|
||||||
"/js/components.js.map": "/js/components.js.map?id=03868ef122820440c621f29c51b3c467",
|
"/js/components.js.map": "/js/components.js.map?id=03868ef122820440c621f29c51b3c467",
|
||||||
"/css/app.css": "/css/app.css?id=5d0a6568441f28a5d832021a0501139b",
|
"/css/app.css": "/css/app.css?id=5d0a6568441f28a5d832021a0501139b",
|
||||||
|
|||||||
@ -194,7 +194,6 @@ if(typeof window.OrderArchiveModule ==="undefined") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initViewList(options={}) {
|
initViewList(options={}) {
|
||||||
console.log('[OA-DEBUG] initViewList() START');
|
|
||||||
debug('listview inicialization');
|
debug('listview inicialization');
|
||||||
|
|
||||||
if(APP.IsUserAdmin){
|
if(APP.IsUserAdmin){
|
||||||
@ -221,11 +220,7 @@ if(typeof window.OrderArchiveModule ==="undefined") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let dataTableCSSSelector=this.Opts.CSSSelectorContainer+' .dataTable'; //
|
let dataTableCSSSelector=this.Opts.CSSSelectorContainer+' .dataTable'; //
|
||||||
console.log('[OA-DEBUG] dataTableCSSSelector =', dataTableCSSSelector);
|
|
||||||
console.log('[OA-DEBUG] table element found =', $(dataTableCSSSelector).length, 'db');
|
|
||||||
let colNum=$(dataTableCSSSelector+' thead th').length; //buttons insert position need
|
let colNum=$(dataTableCSSSelector+' thead th').length; //buttons insert position need
|
||||||
console.log('[OA-DEBUG] colNum (thead th count) =', colNum);
|
|
||||||
console.log('[OA-DEBUG] AJAX URL =', this.Opts.URL.getDataTableContent);
|
|
||||||
APP.setOpts({
|
APP.setOpts({
|
||||||
//datatableRowActionButtonClickCallBack:this.datatableRowActionButtonClick,
|
//datatableRowActionButtonClickCallBack:this.datatableRowActionButtonClick,
|
||||||
datatableRowActionButtonClickCallBack:this.datatableRowActionButtonClick,
|
datatableRowActionButtonClickCallBack:this.datatableRowActionButtonClick,
|
||||||
@ -238,7 +233,6 @@ if(typeof window.OrderArchiveModule ==="undefined") {
|
|||||||
orderDirective=options['orderDirective'];
|
orderDirective=options['orderDirective'];
|
||||||
}
|
}
|
||||||
//let ajaxUrl=this.Opts.URL.getDataTableContent;
|
//let ajaxUrl=this.Opts.URL.getDataTableContent;
|
||||||
console.log('[OA-DEBUG] Calling .DataTable() init...');
|
|
||||||
this.dataTable=$(dataTableCSSSelector).DataTable( {
|
this.dataTable=$(dataTableCSSSelector).DataTable( {
|
||||||
language: {
|
language: {
|
||||||
url: '//cdn.datatables.net/plug-ins/1.10.24/i18n/Hungarian.json'
|
url: '//cdn.datatables.net/plug-ins/1.10.24/i18n/Hungarian.json'
|
||||||
@ -248,7 +242,6 @@ if(typeof window.OrderArchiveModule ==="undefined") {
|
|||||||
"ajax": {
|
"ajax": {
|
||||||
url:this.Opts.URL.getDataTableContent,
|
url:this.Opts.URL.getDataTableContent,
|
||||||
data:function (data) {
|
data:function (data) {
|
||||||
console.log('[OA-DEBUG] DataTable AJAX data() called – request indul:', this.Opts?.URL?.getDataTableContent ?? 'URL ismeretlen');
|
|
||||||
data.advanceSearchParameter=advanceSearchParameter;
|
data.advanceSearchParameter=advanceSearchParameter;
|
||||||
/*
|
/*
|
||||||
data.searchParam=this.Opts.dataTable.advanceSearchParameter
|
data.searchParam=this.Opts.dataTable.advanceSearchParameter
|
||||||
@ -316,15 +309,12 @@ data.searchParam=this.Opts.dataTable.advanceSearchParameter
|
|||||||
"order": orderDirective,
|
"order": orderDirective,
|
||||||
"stateSave": false,
|
"stateSave": false,
|
||||||
"drawCallback": function( settings ) {
|
"drawCallback": function( settings ) {
|
||||||
console.log('[OA-DEBUG] drawCallback fired – DataTable rendered');
|
|
||||||
settings=null;
|
settings=null;
|
||||||
APP.datatableAddRowAction(dataTableCSSSelector);
|
APP.datatableAddRowAction(dataTableCSSSelector);
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
console.log('[OA-DEBUG] .DataTable() init returned. Instance =', this.dataTable);
|
|
||||||
this.initAdvancedSearch();
|
this.initAdvancedSearch();
|
||||||
console.log('[OA-DEBUG] initViewList() END');
|
|
||||||
debug('listview end');
|
debug('listview end');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,22 +58,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
console.log('[OA-DEBUG] 1. $(document).ready() fired');
|
|
||||||
console.log('[OA-DEBUG] 2. APP.IsUserAdmin =', APP.IsUserAdmin);
|
|
||||||
console.log('[OA-DEBUG] 3. typeof OrderArchiveModule =', typeof OrderArchiveModule);
|
|
||||||
console.log('[OA-DEBUG] 4. typeof DataModelOrderArchive =', typeof DataModelOrderArchive);
|
|
||||||
console.log('[OA-DEBUG] 5. typeof ModuleBase =', typeof ModuleBase);
|
|
||||||
|
|
||||||
|
|
||||||
console.log('[OA-DEBUG] 6. APP.OrderArchiveModule before check =', typeof APP.OrderArchiveModule);
|
|
||||||
if(typeof APP.OrderArchiveModule ==="undefined") {
|
if(typeof APP.OrderArchiveModule ==="undefined") {
|
||||||
console.log('[OA-DEBUG] 7. Creating new OrderArchiveModule...');
|
|
||||||
APP.OrderArchiveModule=new OrderArchiveModule();
|
APP.OrderArchiveModule=new OrderArchiveModule();
|
||||||
console.log('[OA-DEBUG] 8. OrderArchiveModule created =', APP.OrderArchiveModule);
|
|
||||||
} else {
|
|
||||||
console.log('[OA-DEBUG] 7. APP.OrderArchiveModule already exists, reusing.');
|
|
||||||
}
|
}
|
||||||
console.log('[OA-DEBUG] 9. Calling APP.OrderArchiveModule.init()...');
|
|
||||||
APP.OrderArchiveModule.init(
|
APP.OrderArchiveModule.init(
|
||||||
{
|
{
|
||||||
URL: {
|
URL: {
|
||||||
@ -87,10 +74,7 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('[OA-DEBUG] 10. init() done. Opts.URL =', APP.OrderArchiveModule.Opts?.URL);
|
|
||||||
console.log('[OA-DEBUG] 11. Calling initViewList()...');
|
|
||||||
APP.OrderArchiveModule.initViewList({orderDirective:[[4, "desc"]]});
|
APP.OrderArchiveModule.initViewList({orderDirective:[[4, "desc"]]});
|
||||||
console.log('[OA-DEBUG] 12. initViewList() returned. dataTable =', APP.OrderArchiveModule.dataTable);
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user