Log Message:
-----------
Fixed "click here" link surrounding the iframe inside which webwork appears.
The link now opens the webwork page as intended.
Modified Files:
--------------
wwmoodle/wwassignment:
view.php
Revision Data
-------------
Index: view.php
===================================================================
RCS file: /webwork/cvs/system/wwmoodle/wwassignment/view.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lwwassignment/view.php -Lwwassignment/view.php -u -r1.6 -r1.7
--- wwassignment/view.php
+++ wwassignment/view.php
@@ -61,13 +61,15 @@
+// Print webwork in iframe and link to escape to have webwork in a single window
print("<p style='font-size: smaller; color: #aaa;'>" . get_string("iframeNoShow-1", "wwassignment")
- . "<a href='$sSetLink'>" . get_string("iframeNoShow-2", "wwassignment") . "</a>.</p>\n");
-print("<p align='center'><iframe id='wwPage' src='$webworksetlink' frameborder='1' "
+ . "<a href='$webworksetlink'>" . get_string("iframeNoShow-2", "wwassignment")
+ ."</a><p align='center'></iframe></p>\n"
+ );
+print("<iframe id='wwPage' src='$webworksetlink' frameborder='1' "
. "width='".$CFG->wwassignment_iframewidth."' "
. "height='".$CFG->wwassignment_iframeheight."'>"
- . get_string("iframeNoShow-1", "wwassignment") . "<a href='$webworksetlink'>" . get_string("iframeNoShow-2", "wwassignment")
- . "</a>.</iframe></p>\n");
+ );
print("<script>ww.Init(".isteacher($course->id).")</script>");
|