summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-10-27 19:34:11 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-10-27 19:34:11 +0200
commit969310f6b3d32aa72b5a147ba762ea24e2bb4909 (patch)
tree28217064fb938b6d9bf16550e4f9ebae1deaff6e
parent8bddd94ea8efd2dc41d3fa35353a85ec5299a711 (diff)
downloadrpg-969310f6b3d32aa72b5a147ba762ea24e2bb4909.tar.gz
rpg-969310f6b3d32aa72b5a147ba762ea24e2bb4909.tar.bz2
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.
-rw-r--r--lib/scripts/media.js8
1 files changed, 8 insertions, 0 deletions
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) {