From 633b8e062fd7a96a6ee0a4e32f73c0454b5b2b1c Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 13 May 2022 15:20:48 +0530 Subject: [PATCH] lint compliance --- customize.dist/src/less2/include/drive.less | 3 --- www/admin/inner.js | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index ed442dfef..7839f2526 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -509,9 +509,6 @@ position: absolute; z-index: 50; } - &.cp-app-drive-readonly { // XXX DB never applied? - // background: contrast(@cp_sidebar-right-bg, darken(@cp_sidebar-right-bg, 10%), lighten(@cp_sidebar-right-bg, 10%)); - } h1 { padding-left: 10px; margin-top: 10px; diff --git a/www/admin/inner.js b/www/admin/inner.js index eaafe0ba3..2041bb809 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -430,6 +430,16 @@ define([ return $div; }; + var getInstanceString = function (attr) { + var val = APP.instanceStatus[attr]; + var type = typeof(val); + switch (type) { + case 'string': return val; + case 'object': return val.default; + default: return; + } + }; + create['jurisdiction'] = function () { // XXX make translateable var key = 'jurisdiction'; var $div = makeBlock(key, true); // Msg.admin_jurisdictionHint, Msg.admin_jurisdictionTitle, Msg.admin_jurisdictionButton @@ -519,16 +529,6 @@ define([ )); }; - var getInstanceString = function (attr) { - var val = APP.instanceStatus[attr]; - var type = typeof(val); - switch (type) { - case 'string': return val; - case 'object': return val.default; - default: return; - } - }; - create['name'] = function () { // XXX make translateable var key = 'name'; var $div = makeBlock(key, true);