aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/Resources/static/themes/material/css/nav.scss5
-rwxr-xr-xapp/Resources/static/themes/material/index.js5
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);