Warn about unsaved changes when executing search
This commit is contained in:
parent
9f6de7de6d
commit
202429e647
1 changed files with 8 additions and 3 deletions
|
@ -446,10 +446,15 @@ function rcube_kolab_notes_ui(settings)
|
||||||
if (search_request == id)
|
if (search_request == id)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
search_request = id;
|
warn_unsaved_changes(function(){
|
||||||
search_query = q;
|
search_request = id;
|
||||||
|
search_query = q;
|
||||||
|
|
||||||
fetch_notes();
|
fetch_notes();
|
||||||
|
},
|
||||||
|
function(){
|
||||||
|
reset_search();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else { // empty search input equals reset
|
else { // empty search input equals reset
|
||||||
reset_search();
|
reset_search();
|
||||||
|
|
Loading…
Add table
Reference in a new issue