From: Dongsheng Cai <unoter@gmail.com> Date: Tue, 10 Nov 2009 08:57:40 +0000 (+0000) Subject: "MDL-20603, remove an unused js file from moodlemedia plugin" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=19d1e6c208458f8636ae8dd82a56f645a76c4339;p=moodle.git "MDL-20603, remove an unused js file from moodlemedia plugin" --- diff --git a/lib/editor/tinymce/plugins/moodlemedia/js/dialog.js b/lib/editor/tinymce/plugins/moodlemedia/js/dialog.js deleted file mode 100755 index fa8341132f..0000000000 --- a/lib/editor/tinymce/plugins/moodlemedia/js/dialog.js +++ /dev/null @@ -1,19 +0,0 @@ -tinyMCEPopup.requireLangPack(); - -var ExampleDialog = { - init : function() { - var f = document.forms[0]; - - // Get the selected contents as text and place it in the input - f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); - f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); - }, - - insert : function() { - // Insert the contents from the input into the document - tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); - tinyMCEPopup.close(); - } -}; - -tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);