diff options
Diffstat (limited to 'app/Resources/static/themes/material/index.js')
-rwxr-xr-x | app/Resources/static/themes/material/index.js | 5 |
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); |