[LON-CAPA-cvs] cvs: loncom /homework edit.pm
banghart
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 19 Jun 2007 20:24:42 -0000
banghart Tue Jun 19 16:24:42 2007 EDT
Modified files:
/loncom/homework edit.pm
Log:
Make restrictions in browse work with imageresponse.pm
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.107 loncom/homework/edit.pm:1.108
--- loncom/homework/edit.pm:1.107 Tue Jun 19 15:41:52 2007
+++ loncom/homework/edit.pm Tue Jun 19 16:24:42 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# edit mode helpers
#
-# $Id: edit.pm,v 1.107 2007/06/19 19:41:52 banghart Exp $
+# $Id: edit.pm,v 1.108 2007/06/19 20:24:42 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -932,6 +932,8 @@
my $titleelement;
if ($titleid) {
$titleelement=",'$only','','".&escape("$titleid\_$Apache::lonxml::curdepth")."'";
+ } else {
+ $titleelement=",'$only'";
}
my $result = <<"ENDBUTTON";
<a href=\"javascript:openbrowser('$form','$element'$titleelement)\"\>Select</a>