We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98a487 commit d1e49b1Copy full SHA for d1e49b1
lib/web/mage/adminhtml/globals.js
@@ -2,8 +2,7 @@
2
* Copyright © 2015 Magento. All rights reserved.
3
* See COPYING.txt for license details.
4
*/
5
-define([
6
-], function () {
+define([], function () {
7
'use strict';
8
9
/**
@@ -13,4 +12,18 @@ define([
13
12
window.setLocation = function (url) {
14
window.location.href = url;
15
};
+
16
+ /**
17
+ * Helper for onclick action.
18
+ * @param {String} message
19
+ * @param {String} url
20
+ * @returns {boolean}
21
+ */
22
+ window.deleteConfirm = function (message, url) {
23
+ if (confirm(message)) {
24
+ setLocation(url);
25
+ }
26
27
+ return false;
28
+ };
29
});
0 commit comments