diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2017-11-01 12:32:14 +0100 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2017-11-05 13:14:47 +0100 |
commit | 3d46eeeb33bf128c81288e6a345e9242f3ad6b7a (patch) | |
tree | 8df8c6cf46b96ad1f5cef8b71cc84c8a16c9dc6c /app/Resources | |
parent | b0f9e52b7ea00309ec3c2b9e468b07b9ffc3eb98 (diff) | |
download | wallabag-3d46eeeb33bf128c81288e6a345e9242f3ad6b7a.tar.gz wallabag-3d46eeeb33bf128c81288e6a345e9242f3ad6b7a.tar.zst wallabag-3d46eeeb33bf128c81288e6a345e9242f3ad6b7a.zip |
material: disable editing of entry url input when submitting new url
Fixes #1871
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'app/Resources')
-rw-r--r-- | app/Resources/static/themes/material/css/nav.scss | 5 | ||||
-rwxr-xr-x | app/Resources/static/themes/material/index.js | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/css/nav.scss b/app/Resources/static/themes/material/css/nav.scss index 1a25a5be..7898f662 100644 --- a/app/Resources/static/themes/material/css/nav.scss +++ b/app/Resources/static/themes/material/css/nav.scss | |||
@@ -95,6 +95,11 @@ nav { | |||
95 | display: flex; | 95 | display: flex; |
96 | flex: 1; | 96 | flex: 1; |
97 | } | 97 | } |
98 | |||
99 | &.nav-panel-add form.disabled, | ||
100 | &.nav-panel-add form.disabled input { | ||
101 | background-color: whitesmoke; | ||
102 | } | ||
98 | } | 103 | } |
99 | 104 | ||
100 | #button_filters { | 105 | #button_filters { |
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js index d6afbb8a..36505d71 100755 --- a/app/Resources/static/themes/material/index.js +++ b/app/Resources/static/themes/material/index.js | |||
@@ -50,6 +50,11 @@ $(document).ready(() => { | |||
50 | $('#entry_url').focus(); | 50 | $('#entry_url').focus(); |
51 | return false; | 51 | return false; |
52 | }); | 52 | }); |
53 | const materialAddForm = $('.nav-panel-add form[name=entry]'); | ||
54 | materialAddForm.on('submit', () => { | ||
55 | materialAddForm.addClass('disabled'); | ||
56 | $('input#entry_url', materialAddForm).prop('readonly', true).trigger('blur'); | ||
57 | }); | ||
53 | $('#nav-btn-search').on('click', () => { | 58 | $('#nav-btn-search').on('click', () => { |
54 | $('.nav-panel-buttom').hide(100); | 59 | $('.nav-panel-buttom').hide(100); |
55 | $('.nav-panel-search').show(100); | 60 | $('.nav-panel-search').show(100); |