From c1b50fd0ce5466721dda738b831f60aa9ad356f5 Mon Sep 17 00:00:00 2001 From: Tim McIver Date: Mon, 24 Aug 2015 15:04:03 -0400 Subject: [PATCH] Per PR suggestion added a dialog indicating that bookmark was successfully saved which closes after one second. --- js/bookmarklet.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/bookmarklet.js b/js/bookmarklet.js index f295619b..bd589574 100644 --- a/js/bookmarklet.js +++ b/js/bookmarklet.js @@ -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);