From d8977c975ee82f77131b2a2281ab0a1d4f1f4451 Mon Sep 17 00:00:00 2001 From: buttflattery Date: Tue, 2 Apr 2019 20:04:49 +0500 Subject: [PATCH] fixes for the material theme verticle and javascrip linting suggestions --- src/assets/css/theme/smart_wizard_theme_material-v.css | 6 +++--- src/assets/css/theme/smart_wizard_theme_material-v.min.css | 6 +++--- src/assets/js/formwizard.js | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/assets/css/theme/smart_wizard_theme_material-v.css b/src/assets/css/theme/smart_wizard_theme_material-v.css index 278df24..e721a59 100644 --- a/src/assets/css/theme/smart_wizard_theme_material-v.css +++ b/src/assets/css/theme/smart_wizard_theme_material-v.css @@ -86,7 +86,7 @@ float: none; display: block; padding: 0; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 0px 1px rgba(0, 0, 0, 0.2); } .sw-theme-material-v .step-anchor a { @@ -107,10 +107,10 @@ } .sw-theme-material-v ul.step-anchor>li.active a { - background-color: #4caf50 !important; + background-color: rgb(76, 117, 175) !important; color: #fff !important; cursor: default; - padding: 15px 130px 10px 10px; + padding: 20px 30px 20px 10px; } .sw-theme-material-v ul.step-anchor li.done a { diff --git a/src/assets/css/theme/smart_wizard_theme_material-v.min.css b/src/assets/css/theme/smart_wizard_theme_material-v.min.css index 278df24..e721a59 100644 --- a/src/assets/css/theme/smart_wizard_theme_material-v.min.css +++ b/src/assets/css/theme/smart_wizard_theme_material-v.min.css @@ -86,7 +86,7 @@ float: none; display: block; padding: 0; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 0px 1px rgba(0, 0, 0, 0.2); } .sw-theme-material-v .step-anchor a { @@ -107,10 +107,10 @@ } .sw-theme-material-v ul.step-anchor>li.active a { - background-color: #4caf50 !important; + background-color: rgb(76, 117, 175) !important; color: #fff !important; cursor: default; - padding: 15px 130px 10px 10px; + padding: 20px 30px 20px 10px; } .sw-theme-material-v ul.step-anchor li.done a { diff --git a/src/assets/js/formwizard.js b/src/assets/js/formwizard.js index 44876d2..bbaa459 100644 --- a/src/assets/js/formwizard.js +++ b/src/assets/js/formwizard.js @@ -483,8 +483,9 @@ $.formwizard = { lastKeyIndex = keyPath.length - 1; for (var i = 0; i < lastKeyIndex; ++i) { key = keyPath[i]; - if (!(key in obj)) - obj[key] = {} + if (!(key in obj)) { + obj[key] = {}; + } obj = obj[key]; } obj[keyPath[lastKeyIndex]] = value;