Index: lams_tool_mindmap/web/pages/learning/mindmap.jsp =================================================================== diff -u -r5acac14c9f744d59a59c5916cb0dc1c15eab44f6 -r490538b019293e777795484a0ca53b09e2e053c8 --- lams_tool_mindmap/web/pages/learning/mindmap.jsp (.../mindmap.jsp) (revision 5acac14c9f744d59a59c5916cb0dc1c15eab44f6) +++ lams_tool_mindmap/web/pages/learning/mindmap.jsp (.../mindmap.jsp) (revision 490538b019293e777795484a0ca53b09e2e053c8) @@ -13,7 +13,7 @@ document.getElementById("finishButton").disabled = true; } - function submitForm(methodName) { + function submitForm() { // Sets mindmap content in Flash setMindmapContent(); @@ -26,7 +26,7 @@ $.timer(60000, function (timer) { if (!multiMode) $.post("${get}", { dispatch: "${dispatch}", mindmapId: "${mindmapId}", userId: "${userId}", - content: getFlashMovie('flashContent').getMindmap() } ); + content: document['flashContent'].getMindmap() } ); }); function validateForm() { @@ -42,18 +42,13 @@ function setMindmapContent() { var mindmapContent = document.getElementById("mindmapContent"); - mindmapContent.value = getFlashMovie('flashContent').getMindmap(); + mindmapContent.value = document['flashContent'].getMindmap(); } function embedFlashObject(x, y) { swfobject.embedSWF("${mindmapType}", "flashContent", x, y, "9.0.0", false, flashvars); } - - function getFlashMovie(movieName) { - var isIE = navigator.appName.indexOf("Microsoft") != -1; - return (isIE) ? window[movieName] : document[movieName]; - } $(window).resize(makeNice); @@ -129,7 +124,7 @@
- + button.finish