From c2a5d0fda53d9242e577c215add154cd255d1065 Mon Sep 17 00:00:00 2001 From: djmaze Date: Sun, 11 Oct 2020 11:59:36 +0200 Subject: [PATCH] ko hidden: use html5 hidden attribute ko visible: rollback to use style.display --- dev/View/Admin/Login.js | 2 +- dev/View/User/Login.js | 2 +- .../0.0.0/app/templates/Views/Admin/AdminLogin.html | 2 +- rainloop/v/0.0.0/app/templates/Views/User/Login.html | 4 ++-- .../knockout/build/output/knockout-latest.debug.js | 4 ++-- vendors/knockout/build/output/knockout-latest.js | 12 ++++++------ .../src/binding/defaultBindings/visibleHidden.js | 10 ++++++++-- 7 files changed, 21 insertions(+), 15 deletions(-) diff --git a/dev/View/Admin/Login.js b/dev/View/Admin/Login.js index e2cf1e2f3..b8c607d1a 100644 --- a/dev/View/Admin/Login.js +++ b/dev/View/Admin/Login.js @@ -21,7 +21,7 @@ class LoginAdminView extends AbstractViewNext { this.mobile = !!appSettingsGet('mobile'); this.mobileDevice = !!appSettingsGet('mobileDevice'); - this.hideSubmitButton = appSettingsGet('hideSubmitButton') ? '' : null; + this.hideSubmitButton = appSettingsGet('hideSubmitButton'); this.login = ko.observable(''); this.password = ko.observable(''); diff --git a/dev/View/User/Login.js b/dev/View/User/Login.js index 70484fada..2ca287a3e 100644 --- a/dev/View/User/Login.js +++ b/dev/View/User/Login.js @@ -35,7 +35,7 @@ class LoginUserView extends AbstractViewNext { constructor() { super(); - this.hideSubmitButton = Settings.app('hideSubmitButton') ? '' : null; + this.hideSubmitButton = Settings.app('hideSubmitButton'); this.welcome = ko.observable(!!Settings.get('UseLoginWelcomePage')); diff --git a/rainloop/v/0.0.0/app/templates/Views/Admin/AdminLogin.html b/rainloop/v/0.0.0/app/templates/Views/Admin/AdminLogin.html index 86dfd5aba..e8f191b09 100644 --- a/rainloop/v/0.0.0/app/templates/Views/Admin/AdminLogin.html +++ b/rainloop/v/0.0.0/app/templates/Views/Admin/AdminLogin.html @@ -33,7 +33,7 @@ -
+
diff --git a/rainloop/v/0.0.0/app/templates/Views/User/Login.html b/rainloop/v/0.0.0/app/templates/Views/User/Login.html index 224d80d29..b704ade72 100644 --- a/rainloop/v/0.0.0/app/templates/Views/User/Login.html +++ b/rainloop/v/0.0.0/app/templates/Views/User/Login.html @@ -12,7 +12,7 @@
{{INCLUDE/AfterLogo/PLACE}} -