[LON-CAPA-cvs] cvs: rat(version_2_11_X) / lonratedt.pm
raeburn
raeburn at source.lon-capa.org
Tue May 1 19:00:29 EDT 2012
raeburn Tue May 1 23:00:29 2012 EDT
Modified files: (Branch: version_2_11_X)
/rat lonratedt.pm
Log:
- Reverse changes in 1.99, 1.100, 1.101 for 2.11.
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.105 rat/lonratedt.pm:1.105.2.1
--- rat/lonratedt.pm:1.105 Wed Apr 18 17:37:12 2012
+++ rat/lonratedt.pm Tue May 1 23:00:29 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Edit Handler for RAT Maps
#
-# $Id: lonratedt.pm,v 1.105 2012/04/18 17:37:12 raeburn Exp $
+# $Id: lonratedt.pm,v 1.105.2.1 2012/05/01 23:00:29 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -43,8 +43,12 @@
# --------------------------------------------------------- Build up RAT screen
sub ratedt {
my ($r,$url)=@_;
- my %layout = ('border' => "0",
- 'rows' => "1,250,*");
+ my %layout = ('border' => "0");
+ if ($env{'environment.remote'} eq 'off') {
+ $layout{'rows'} = "1,250,*";
+ } else {
+ $layout{'rows'} = "1,70,*";
+ }
my $js ='
<script type="text/javascript">
var flag=0;
@@ -151,10 +155,10 @@
}
// ------------------------------------------------------ Open groupsort window
-function groupopen(url,recover) {
+function groupopen(url,recover,bookmarks) {
var options="scrollbars=1,resizable=1,menubar=0";
idxflag=1;
- idx=open("/adm/groupsort?inhibitmenu=yes&mode=$mode&recover="+recover+"&readfile="+url,"idxout",options);
+idx=open("/adm/groupsort?inhibitmenu=yes&mode=$mode&recover="+recover+"&readfile="+url+"&bookmarks="+bookmarks,"idxout",options);
idx.focus();
}
@@ -491,7 +495,7 @@
'nt' => 'New Title',
'se' => 'Search',
'im' => 'Import',
- 'wl' => 'Import from Wishlist',
+ 'bk' => 'Import Bookmarks',
'vi' => 'View',
'lm' => 'Load Map',
'ds' => 'Discard Selected',
@@ -601,9 +605,9 @@
<input type="button" onClick=
"javascript:impfortarget.value=1;groupimport();" value="$lt{'im'}" />
<input type="button" onClick=
-"javascript:impfortarget.value=1;open_Wishlist_Import('simple');" value="$lt{'wl'}" />
+"javascript:impfortarget.value=1;groupopen(0,1,1);" value="$lt{'bk'}" />
<input type="button" onClick=
-"javascript:impfortarget.value=1;groupopen('$url',1);" value="$lt{'reco'}" />
+"javascript:impfortarget.value=1;groupopen('$url',1,0);" value="$lt{'reco'}" />
$lt{'as'}
<hr />
<input type="submit" name="moveup" value="$lt{'mu'}" />
More information about the LON-CAPA-cvs
mailing list