mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
"Insert Media" dialog: Fixed event names
Fixes https://github.com/silverstripe/silverstripe-cms/issues/781
Regression from 9f600ada
which uses jQuery UI widget "subclass"
that also affects event names.
This commit is contained in:
parent
1046530ff6
commit
18299322bc
@ -382,7 +382,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
|||||||
success: function(html) {
|
success: function(html) {
|
||||||
dialog.html(html);
|
dialog.html(html);
|
||||||
dialog.getForm().setElement(self);
|
dialog.getForm().setElement(self);
|
||||||
dialog.trigger('dialogopen');
|
dialog.trigger('ssdialogopen');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -452,7 +452,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
|||||||
},
|
},
|
||||||
|
|
||||||
fromDialog: {
|
fromDialog: {
|
||||||
ondialogopen: function(){
|
onssdialogopen: function(){
|
||||||
var ed = this.getEditor();
|
var ed = this.getEditor();
|
||||||
ed.onopen();
|
ed.onopen();
|
||||||
|
|
||||||
@ -467,7 +467,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
|||||||
this.redraw();
|
this.redraw();
|
||||||
},
|
},
|
||||||
|
|
||||||
ondialogclose: function(){
|
onssdialogclose: function(){
|
||||||
var ed = this.getEditor();
|
var ed = this.getEditor();
|
||||||
ed.onclose();
|
ed.onclose();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user