mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-01-22 18:52:10 +01:00
Merge pull request #179 from owncloud/issue-136
Prevent dialog stating "Bookmark added. You can close the window now.…
This commit is contained in:
commit
70c0010911
@ -50,10 +50,10 @@ $(document).ready(function () {
|
|||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.status === 'success') {
|
if (data.status === 'success') {
|
||||||
$('#bookmarklet_form').html("");
|
OC.dialogs.message("Bookmark added.", "Success", undefined, [], undefined, true)
|
||||||
OC.dialogs.alert(
|
_.delay(function() {
|
||||||
t("bookmarks", "Bookmark added. You can close the window now."),
|
window.close();
|
||||||
t("bookmarks", "Bookmark added successfully"), closeWindow, true);
|
}, 1e3);
|
||||||
} else {
|
} else {
|
||||||
OC.dialogs.alert(t("bookmarks", "Some Error happened."),
|
OC.dialogs.alert(t("bookmarks", "Some Error happened."),
|
||||||
t("bookmarks", "Error"), null, true);
|
t("bookmarks", "Error"), null, true);
|
||||||
@ -71,7 +71,3 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function closeWindow() {
|
|
||||||
window.close();
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user