This repository was archived by the owner on Feb 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Js Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 3
3
return {
4
4
open : function ( options ) {
5
5
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
-
14
6
var o = $ . extend ( { } , {
15
7
template : "/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.dialog.html" ,
16
8
show : true ,
17
9
requireName : true ,
18
10
} , options ) ;
19
11
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
-
42
12
// Launch the dialog
43
13
dialogService . open ( o ) ;
44
14
}
You can’t perform that action at this time.
0 commit comments