--- loncom/interface/lonmenu.pm 2004/09/18 16:55:33 1.117
+++ loncom/interface/lonmenu.pm 2004/10/28 16:25:21 1.118
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.117 2004/09/18 16:55:33 albertel Exp $
+# $Id: lonmenu.pm,v 1.118 2004/10/28 16:25:21 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -532,11 +532,18 @@ sub startupremote {
#
my $configmenu=&rawconfig();
my $esclowerurl=&Apache::lonnet::escape($lowerurl);
-
+ my $message=&mt('"Waiting for remote to load "+[_1]','waited');
return(<
-
+var timestart;
function wheelswitch() {
+ if (typeof(document.wheel) != 'undefined') {
+ if (typeof(document.wheel.spin) != 'undefined') {
+ var date=new Date();
+ var waited=Math.round(30-((date.getTime()-timestart)/1000));
+ document.wheel.spin.value=$message;
+ }
+ }
if (window.status=='|') {
window.status='/';
} else {
@@ -573,6 +580,8 @@ function wait() {
function main() {
canceltim=setTimeout('tim=1;',30000);
window.status='-';
+ var date=new Date();
+ timestart=date.getTime();
wait();
}
@@ -598,6 +607,25 @@ sub maincall() {
ENDMAINCALL
}
+
+sub load_remote_msg {
+ my ($lowerurl)=@_;
+
+ if (($ENV{'browser.interface'} eq 'textual') ||
+ ($ENV{'environment.remote'} eq 'off')) { return ''; }
+
+ my $esclowerurl=&Apache::lonnet::escape($lowerurl);
+ my $link=&mt('Continue on in inline remote mode',
+ "/adm/remote?action=collapse?url=$esclowerurl");
+ return(<
+
+
+$link
+ENDREMOTEFORM
+}
# ================================================================= Reopen menu
sub reopenmenu {