diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2017-11-06 20:43:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 20:43:48 +0100 |
commit | 8abb6c13219c7125f57667c9272db0a5c5d2bcb7 (patch) | |
tree | 91b41707df5132b61c8fbfe6067b9a5d0869ea2f /app/Resources | |
parent | b0f9e52b7ea00309ec3c2b9e468b07b9ffc3eb98 (diff) | |
parent | 46ee68ea483f8a36edc866c7364284917d794988 (diff) | |
download | wallabag-8abb6c13219c7125f57667c9272db0a5c5d2bcb7.tar.gz wallabag-8abb6c13219c7125f57667c9272db0a5c5d2bcb7.tar.zst wallabag-8abb6c13219c7125f57667c9272db0a5c5d2bcb7.zip |
Merge pull request #3397 from wallabag/issue-1871
material: disable editing of entry url input when submitting new url
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); |