From 969310f6b3d32aa72b5a147ba762ea24e2bb4909 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Wed, 27 Oct 2010 19:34:11 +0200 Subject: [PATCH] disable media options dialog FS#2047 The media options dialog has currently an open bug regarding the behavior of the nolink option. Additionally will wrong syntax be inserted when using Internet Explorer < 8. Since this can't be fixed on time, this patch disables the media options for the release. --- lib/scripts/media.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/scripts/media.js b/lib/scripts/media.js index c8ddfa40a..8eb19ce6b 100644 --- a/lib/scripts/media.js +++ b/lib/scripts/media.js @@ -215,6 +215,14 @@ var media_manager = { return false; } + // FIXME these lines deactivate the media options dialog and restore + // the old behavior according to FS#2047 + opener.insertTags('wiki__text','{{'+id+'|','}}',''); + if(!media_manager.keepopen) window.close(); + opener.focus(); + return false; + + media_manager.ext = false; var dot = id.lastIndexOf("."); if (dot != -1) { -- GitLab