From bb2774923bc982ef647ad9b15605d0a940ce5d9a Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 16 Oct 2024 18:30:14 +0800 Subject: [PATCH] * [refac] format code. --- module/doc/js/app.ui.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/doc/js/app.ui.js b/module/doc/js/app.ui.js index c6b6b3478f..cec7a1152b 100644 --- a/module/doc/js/app.ui.js +++ b/module/doc/js/app.ui.js @@ -64,7 +64,6 @@ function processDocAppAction(action, docApp) if(action.mode && action.mode !== docApp.mode) return; const method = zui.deepGet(docApp, action.call); if(typeof method === 'function') method.apply(docApp, action.args); - if(config.debug) console.log('DocApp.action', {action, method, docApp}); } /* @@ -898,7 +897,6 @@ function getSortableOptions(type) if(!fromKey || !toKey) return false; const fromType = getItemType(fromKey); const toType = getItemType(toKey); - console.log(fromType, toType); if (fromType !== toType) return false; return true; }, @@ -908,7 +906,8 @@ function getSortableOptions(type) if(!fromKey || !orders.length) return; const fromType = getItemType(fromKey); const orderedList = []; - orders.forEach((key, index) => { + orders.forEach((key, index) => + { const keyType = getItemType(key); if(keyType !== fromType) return; if(fromType !== 'doc') key = key.substring(1);