aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-05-02 16:59:49 +0200
committerGitHub <noreply@github.com>2017-05-02 16:59:49 +0200
commitdfa0822f197991f96d427112c23abd460198817d (patch)
treed6608c08ec1615f286e8a72c0449c5e4a5496a80 /app/Resources/static/themes
parent0e6509c3d8aa5f432eb0a470b25b30732e869402 (diff)
parenta40029f9d6cf8405b6f3e30c8762a4f50da88db5 (diff)
downloadwallabag-dfa0822f197991f96d427112c23abd460198817d.tar.gz
wallabag-dfa0822f197991f96d427112c23abd460198817d.tar.zst
wallabag-dfa0822f197991f96d427112c23abd460198817d.zip
Merge pull request #3075 from wallabag/disable-shortcuts-login
Disabled shortcuts on login/register page
Diffstat (limited to 'app/Resources/static/themes')
-rw-r--r--app/Resources/static/themes/material/js/shortcuts/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/js/shortcuts/main.js b/app/Resources/static/themes/material/js/shortcuts/main.js
index 0a2d2a69..41499478 100644
--- a/app/Resources/static/themes/material/js/shortcuts/main.js
+++ b/app/Resources/static/themes/material/js/shortcuts/main.js
@@ -23,6 +23,11 @@ $(document).ready(() => {
23 return; 23 return;
24 } 24 }
25 25
26 /* Show nothing on login/register page */
27 if ($('#username').length > 0 || $('#fos_user_registration_form_username').length > 0) {
28 return;
29 }
30
26 /* Focus current card */ 31 /* Focus current card */
27 toggleFocus(card); 32 toggleFocus(card);
28 33