[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm
raeburn
raeburn@source.lon-capa.org
Sun, 22 Aug 2010 21:51:11 -0000
raeburn Sun Aug 22 21:51:11 2010 EDT
Modified files:
/loncom/auth lonlogin.pm
Log:
- Bug 6345.
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.138 loncom/auth/lonlogin.pm:1.139
--- loncom/auth/lonlogin.pm:1.138 Fri May 21 15:54:34 2010
+++ loncom/auth/lonlogin.pm Sun Aug 22 21:51:11 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.138 2010/05/21 15:54:34 bisitz Exp $
+# $Id: lonlogin.pm,v 1.139 2010/08/22 21:51:11 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -313,6 +313,14 @@
this.document.server.submit();
return false;
}
+
+function enableInput() {
+ this.document.client.elements.upass$now.removeAttribute("readonly");
+ this.document.client.elements.uname.removeAttribute("readonly");
+ this.document.client.elements.udom.removeAttribute("readonly");
+ return;
+}
+
// ]]>
</script>
@@ -325,7 +333,8 @@
text => "$font",
link => "$link",
vlink => "$vlink",
- alink => "$alink",);
+ alink => "$alink",
+ onload => 'javascript:enableInput();',);
$r->print(&Apache::loncommon::start_page('The LearningOnline Network with CAPA Login',$js,
{ 'redirect' => [$expire,'/adm/roles'],
@@ -414,11 +423,11 @@
<input type="hidden" name="lextkey" value="$lextkey" />
<input type="hidden" name="uextkey" value="$uextkey" />
<b><label for="uname">$lt{'un'}</label>:</b><br />
- <input type="text" name="uname" id="uname" size="15" value="$authusername" /><br />
+ <input type="text" name="uname" id="uname" size="15" value="$authusername" readonly="readonly" /><br />
<b><label for="upass$now">$lt{'pw'}</label>:</b><br />
- <input type="password" name="upass$now" id="upass$now" size="15" /><br />
+ <input type="password" name="upass$now" id="upass$now" size="15" readonly="readonly" /><br />
<b><label for="udom">$lt{'dom'}</label>:</b><br />
- <input type="text" name="udom" id="udom" size="15" value="$authdomain" /><br />
+ <input type="text" name="udom" id="udom" size="15" value="$authdomain" readonly="readonly" /><br />
<input type="submit" value="$lt{'log'}" />
</form>
LFORM