-
Notifications
You must be signed in to change notification settings - Fork 1
/
refresh.js
37 lines (35 loc) · 1.07 KB
/
refresh.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*global document, window, alert, console, require, google, gapi, moment, XMLHttpRequest*/
var GrowlNotification;
function refresh() {
// if (confirm("Clicking OK will delete any path made. \nClick cancel and save this path if you have not before proceeding" )) {
// window.location.reload();
// } else {}
"use strict";
GrowlNotification.notify({
title: "Warning",
description: 'This will delete any unsaved path made.',
type: 'error',
position: 'top-center',
loseTimeout: 3000,
animationDuration: 5,
image: {
visible: true,
customImage: ''
},
showButtons: true,
buttons: {
cancel: {
text: 'Cancel',
callback: function () {
return;
}
},
action: {
text: 'Ok',
callback: function () {
window.location.reload();
}
}
}
}); // or (new GrowlNotification(options)).show();
}