From 78410e28eb58d2c5d0b6c954a43884f63e5c9f1f Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Sat, 6 Apr 2013 12:30:00 +0100 Subject: [PATCH] Changed attachApplet dom.js method to use also for Firefox, instead of the tag. This fixes some issues when running Signed Applets. --- core/main/client/dom.js | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/core/main/client/dom.js b/core/main/client/dom.js index 913aeae73..6725c99ad 100644 --- a/core/main/client/dom.js +++ b/core/main/client/dom.js @@ -392,7 +392,7 @@ beef.dom = { } content += ""; } - if (beef.browser.isC() || beef.browser.isS() || beef.browser.isO()) { + if (beef.browser.isC() || beef.browser.isS() || beef.browser.isO() || beef.browser.isFF()) { if (codebase != null) { content = "" + @@ -411,24 +411,25 @@ beef.dom = { } content += ""; } - if (beef.browser.isFF()) { - if (codebase != null) { - content = "" + - ""; - } else { - content = "" + - ""; - } - - if (params != null) { - content += beef.dom.parseAppletParams(params); - } - content += ""; - } + // For some reasons JavaPaylod is not working if the applet is attached to the DOM with the embed tag rather than the applet tag. +// if (beef.browser.isFF()) { +// if (codebase != null) { +// content = "" + +// ""; +// } else { +// content = "" + +// ""; +// } +// +// if (params != null) { +// content += beef.dom.parseAppletParams(params); +// } +// content += ""; +// } $j('body').append(content); },