1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-01-22 18:52:10 +01:00

Per PR suggestion added a dialog indicating that bookmark was successfully

saved which closes after one second.
This commit is contained in:
Tim McIver 2015-08-24 15:04:03 -04:00 committed by Arthur Schiwon
parent f67dc417c3
commit c1b50fd0ce

View File

@ -50,7 +50,10 @@ $(document).ready(function () {
},
success: function (data) {
if (data.status === 'success') {
window.close();
OC.dialogs.message("Bookmark added.", "Success", undefined, [], undefined, true)
_.delay(function() {
window.close();
}, 1e3);
} else {
OC.dialogs.alert(t("bookmarks", "Some Error happened."),
t("bookmarks", "Error"), null, true);