[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
www
lon-capa-cvs@mail.lon-capa.org
Sun, 30 Jan 2005 12:51:21 -0000
www Sun Jan 30 07:51:21 2005 EDT
Modified files:
/loncom/interface londocs.pm
Log:
Bug #3676: remove "store parameter" button confusion
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.164 loncom/interface/londocs.pm:1.165
--- loncom/interface/londocs.pm:1.164 Sat Jan 8 01:42:15 2005
+++ loncom/interface/londocs.pm Sun Jan 30 07:51:21 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.164 2005/01/08 06:42:15 albertel Exp $
+# $Id: londocs.pm,v 1.165 2005/01/30 12:51:21 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1303,10 +1303,11 @@
$folderpath.=$folderarg.'&'.$foldername;
$url.='folderpath='.&Apache::lonnet::escape($folderpath);
$parameterset='<label>'.&mt('Randomly Pick: ').
- '<input type="text" size="4" name="randpick_'.$orderidx.'" value="'.
+ '<input type="text" size="4" onChange="this.form.submit()" name="randpick_'.$orderidx.'" value="'.
(&Apache::lonratedt::getparameter($orderidx,
'parameter_randompick'))[0].
- '" />'.'</label>';
+ '" />'.
+'<font size="-2"><a href="javascript:void(0)">'.&mt('Store').'</a></font></label>';
}
if ($ispage) {
@@ -1333,21 +1334,17 @@
if (($allowed) && ($folder!~/^supplemental/)) {
my %lt=&Apache::lonlocal::texthash(
'hd' => 'Hidden',
- 'ec' => 'URL hidden',
- 'sp' => 'Store Parameters');
+ 'ec' => 'URL hidden');
my $enctext=
((&Apache::lonratedt::getparameter($orderidx,'parameter_encrypturl'))[0]=~/^yes$/i?' checked="1"':'');
my $hidtext=
((&Apache::lonratedt::getparameter($orderidx,'parameter_hiddenresource'))[0]=~/^yes$/i?' checked="1"':'');
$line.=(<<ENDPARMS);
<td bgcolor="#BBBBFF"><font size='-2'>
-<nobr><label><input type="checkbox" name="hidprs_$orderidx" $hidtext/> $lt{'hd'}</label></nobr></td>
+<nobr><label><input type="checkbox" name="hidprs_$orderidx" onClick="this.form.submit()" $hidtext /> $lt{'hd'}</label></nobr></td>
<td bgcolor="#BBBBFF"><font size='-2'>
-<nobr><label><input type="checkbox" name="encprs_$orderidx" $enctext/> $lt{'ec'}</label></nobr></td>
+<nobr><label><input type="checkbox" name="encprs_$orderidx" onClick="this.form.submit()" $enctext /> $lt{'ec'}</label></nobr></td>
<td bgcolor="#BBBBFF"><font size="-2">$parameterset</font></td>
-<td bgcolor="#BBBBFF"><font size='-2'>
-<input type="submit" value="$lt{'sp'}" />
-</font></td>
ENDPARMS
}
$line.="</form></tr>";
@@ -1960,16 +1957,20 @@
this.document.forms.newaboutsomeone.importdetail.value=
'About '+user+'=/adm/'+comp[1]+'/'+comp[0]+'/aboutme';
this.document.forms.newaboutsomeone.submit();
- }
+ } else {
+ alert("Not a valid user\@domain");
+ }
+ } else {
+ alert("Please enter both user and domain in the format user\@domain");
}
}
}
function makeims() {
- var caller = document.forms.ims.folder.value
- var newlocation = "/adm/imsimportdocs?folder="+caller+"&phase=one"
- newWindow = window.open("","IMSimport","HEIGHT=700,WIDTH=750,scrollbars=yes")
- newWindow.location.href = newlocation
+ var caller = document.forms.ims.folder.value;
+ var newlocation = "/adm/imsimportdocs?folder="+caller+"&phase=one";
+ newWindow = window.open("","IMSimport","HEIGHT=700,WIDTH=750,scrollbars=yes");
+ newWindow.location.href = newlocation;
}