mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 09:31:04 +00:00
Merge pull request #3397 from wallabag/issue-1871
material: disable editing of entry url input when submitting new url
This commit is contained in:
commit
8abb6c1321
4 changed files with 12 additions and 2 deletions
|
@ -95,6 +95,11 @@ nav {
|
|||
display: flex;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&.nav-panel-add form.disabled,
|
||||
&.nav-panel-add form.disabled input {
|
||||
background-color: whitesmoke;
|
||||
}
|
||||
}
|
||||
|
||||
#button_filters {
|
||||
|
|
|
@ -50,6 +50,11 @@ $(document).ready(() => {
|
|||
$('#entry_url').focus();
|
||||
return false;
|
||||
});
|
||||
const materialAddForm = $('.nav-panel-add form[name=entry]');
|
||||
materialAddForm.on('submit', () => {
|
||||
materialAddForm.addClass('disabled');
|
||||
$('input#entry_url', materialAddForm).prop('readonly', true).trigger('blur');
|
||||
});
|
||||
$('#nav-btn-search').on('click', () => {
|
||||
$('.nav-panel-buttom').hide(100);
|
||||
$('.nav-panel-search').show(100);
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue