[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
www
lon-capa-cvs@mail.lon-capa.org
Sun, 01 Feb 2004 21:28:50 -0000
www Sun Feb 1 16:28:50 2004 EDT
Modified files:
/loncom/interface londocs.pm
Log:
Bug #2632: Insert "About Me" for any user.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.100 loncom/interface/londocs.pm:1.101
--- loncom/interface/londocs.pm:1.100 Wed Jan 28 19:50:44 2004
+++ loncom/interface/londocs.pm Sun Feb 1 16:28:49 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.100 2004/01/29 00:50:44 www Exp $
+# $Id: londocs.pm,v 1.101 2004/02/01 21:28:49 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -933,6 +933,21 @@
}
}
+function makeabout() {
+ var user=prompt("Enter user\@domain for User's 'About Me' Page");
+ if (user) {
+ var comp=new Array();
+ comp=user.split('\@');
+ if ((typeof(comp[0])!=undefined) && (typeof(comp[1])!=undefined)) {
+ if ((comp[0]) && (comp[1])) {
+ this.document.forms.newaboutsomeone.importdetail.value=
+ 'About '+user+'=/adm/'+comp[1]+'/'+comp[0]+'/aboutme';
+ this.document.forms.newaboutsomeone.submit();
+ }
+ }
+ }
+}
+
function finishpick() {
var title=this.document.forms.extimport.title.value;
var url=this.document.forms.extimport.url.value;
@@ -990,6 +1005,7 @@
'scuf' => 'Score Upload Form',
'bull' => 'Bulletin Board',
'mypi' => 'My Personal Info',
+ 'abou' => 'About User',
'file' => 'File',
'title' => 'Title',
'comment' => 'Comment'
@@ -1172,6 +1188,15 @@
<nobr>
<input name="newaboutme" type="submit" value="$lt{'mypi'}" />
$help{'My Personal Info'}
+</nobr>
+</form>
+<form action="/adm/coursedocs" method="post" name="newaboutsomeone">
+<input type="hidden" name="folder" value="$folder">
+<input type="hidden" name="foldername" value="$ENV{'form.foldername'}">
+<input type=hidden name="importdetail" value="">
+<nobr>
+<input name="newaboutsomeone" type="button" value="$lt{'abou'}"
+onClick="javascript:makeabout();" />
</nobr>
</form>
</td></tr>