Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit f6955b0

Browse files
Removed commented out code
1 parent 9be8c3d commit f6955b0

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Js/doctypegrideditor.services.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,12 @@
33
return {
44
open: function (options) {
55

6-
//var currentEditorState = editorState.current;
7-
//var callback = function () {
8-
// // We create a new editor state in the dialog,
9-
// // so be sure to set the previous one back
10-
// // when we are done.
11-
// editorState.set(currentEditorState);
12-
//};
13-
146
var o = $.extend({}, {
157
template: "/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.dialog.html",
168
show: true,
179
requireName: true,
1810
}, options);
1911

20-
21-
// Wrap callbacks and reset the editor state
22-
//if ("callback" in o) {
23-
// var oldCallback = o.callback;
24-
// o.callback = function (data) {
25-
// oldCallback(data);
26-
// callback(data);
27-
// };
28-
//} else {
29-
// o.callback = callback;
30-
//}
31-
32-
//if ("closeCallback" in o) {
33-
// var oldCloseCallback = o.closeCallback;
34-
// o.closeCallback = function (data) {
35-
// oldCloseCallback(data);
36-
// callback(data);
37-
// };
38-
//} else {
39-
// o.closeCallback = callback;
40-
//}
41-
4212
// Launch the dialog
4313
dialogService.open(o);
4414
}

0 commit comments

Comments
 (0)