version 1.104, 2004/05/11 05:19:30
|
version 1.106, 2004/05/11 13:22:41
|
Line 127 sub handler {
|
Line 127 sub handler {
|
{ |
{ |
if ($ENV{'form.launch'} eq '1') { |
if ($ENV{'form.launch'} eq '1') { |
&start_fresh_session(); |
&start_fresh_session(); |
} |
} |
|
#Hijack lonindexer to verify a title and be close down. |
|
if ($ENV{'form.launch'} eq '2') { |
|
#$r->content_type('text/html'); |
|
my $verify_title = &Apache::lonnet::gettitle($ENV{'form.acts'}); |
|
$r->print(<<ENDSUBM); |
|
<html> |
|
<script type="text/javascript"> |
|
function load() { |
|
window.opener.document.forms["$ENV{'form.form'}"].elements["$ENV{'form.element'}"].value='$ENV{'form.acts'}'; |
|
window.opener.document.forms["$ENV{'form.form'}"].elements["$ENV{'form.titleelement'}"].value='$verify_title'; |
|
window.close(); |
|
} |
|
</script> |
|
<body onLoad=load();> |
|
</body> |
|
</html> |
|
ENDSUBM |
|
return OK; |
|
} |
|
|
# -------------------- refresh environment with user database values (in %hash) |
# -------------------- refresh environment with user database values (in %hash) |
&setvalues(\%hash,'form.catalogmode',\%ENV,'form.catalogmode' ); |
&setvalues(\%hash,'form.catalogmode',\%ENV,'form.catalogmode' ); |
|
|
Line 236 END
|
Line 256 END
|
$catalogmodefunctions=<<END; |
$catalogmodefunctions=<<END; |
// mode = $mode |
// mode = $mode |
function select_data(title,url) { |
function select_data(title,url) { |
changeURL(url); |
var location = "/res/?launch=2&form=$form&element=$element&titleelement=$titleelement&acts=" + url; |
changeTitle(title); |
window.location=location; |
self.close(); |
|
} |
} |
|
|
function select_group() { |
function select_group() { |
window.location="$location"+document.forms.fileattr.acts.value; |
window.location="$location"+document.forms.fileattr.acts.value; |
} |
} |