From 18299322bc6dc9af017e2c6d3f4272cdacc586fe Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 24 Jun 2013 18:58:46 +0200 Subject: [PATCH] "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. --- javascript/HtmlEditorField.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/HtmlEditorField.js b/javascript/HtmlEditorField.js index 055160ebc..90cd41acf 100644 --- a/javascript/HtmlEditorField.js +++ b/javascript/HtmlEditorField.js @@ -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();