aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/material/index.js
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2017-11-06 20:43:48 +0100
committerGitHub <noreply@github.com>2017-11-06 20:43:48 +0100
commit8abb6c13219c7125f57667c9272db0a5c5d2bcb7 (patch)
tree91b41707df5132b61c8fbfe6067b9a5d0869ea2f /app/Resources/static/themes/material/index.js
parentb0f9e52b7ea00309ec3c2b9e468b07b9ffc3eb98 (diff)
parent46ee68ea483f8a36edc866c7364284917d794988 (diff)
downloadwallabag-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/static/themes/material/index.js')
-rwxr-xr-xapp/Resources/static/themes/material/index.js5
1 files changed, 5 insertions, 0 deletions
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);