Merge pull request #3397 from wallabag/issue-1871

material: disable editing of entry url input when submitting new url
This commit is contained in:
Kevin Decherf 2017-11-06 20:43:48 +01:00 committed by GitHub
commit 8abb6c1321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions

View file

@ -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 {

View file

@ -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