"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:
Ingo Schommer 2013-06-24 18:58:46 +02:00
parent 1046530ff6
commit 18299322bc

View File

@ -382,7 +382,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
success: function(html) {
dialog.html(html);
dialog.getForm().setElement(self);
dialog.trigger('dialogopen');
dialog.trigger('ssdialogopen');
}
});
}
@ -452,7 +452,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
},
fromDialog: {
ondialogopen: function(){
onssdialogopen: function(){
var ed = this.getEditor();
ed.onopen();
@ -467,7 +467,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
this.redraw();
},
ondialogclose: function(){
onssdialogclose: function(){
var ed = this.getEditor();
ed.onclose();