[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
www
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 04 Dec 2007 11:00:07 -0000
www Tue Dec 4 06:00:07 2007 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
Switch whether or not password input is visible
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.619 loncom/interface/loncommon.pm:1.620
--- loncom/interface/loncommon.pm:1.619 Mon Dec 3 23:43:21 2007
+++ loncom/interface/loncommon.pm Tue Dec 4 06:00:05 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.619 2007/12/04 04:43:21 raeburn Exp $
+# $Id: loncommon.pm,v 1.620 2007/12/04 11:00:05 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2073,6 +2073,7 @@
$result = &mt
('[_1] Internally authenticated (with initial password [_2])',
'<label>'.$authtype,'</label>'.$autharg);
+ $result.="<label><input type=\"checkbox\" name=\"visible\" onClick='if (this.checked) { this.form.intarg.type=\"text\" } else { this.form.intarg.type=\"password\" }' />".&mt('Visible input').'</label>';
return $result;
}