mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-29 04:24:11 +01:00
Prevent dialog stating "Bookmark added. You can close the window now." from
displaying when creating a bookmark using bookmarklet. Addresses issue 136.
This commit is contained in:
parent
8b38a26d33
commit
f67dc417c3
@ -50,10 +50,7 @@ $(document).ready(function () {
|
||||
},
|
||||
success: function (data) {
|
||||
if (data.status === 'success') {
|
||||
$('#bookmarklet_form').html("");
|
||||
OC.dialogs.alert(
|
||||
t("bookmarks", "Bookmark added. You can close the window now."),
|
||||
t("bookmarks", "Bookmark added successfully"), closeWindow, true);
|
||||
window.close();
|
||||
} else {
|
||||
OC.dialogs.alert(t("bookmarks", "Some Error happened."),
|
||||
t("bookmarks", "Error"), null, true);
|
||||
@ -71,7 +68,3 @@ $(document).ready(function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function closeWindow() {
|
||||
window.close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user