[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonpreferences.pm
raeburn
raeburn at source.lon-capa.org
Fri Sep 16 18:47:17 EDT 2016
raeburn Fri Sep 16 22:47:17 2016 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonpreferences.pm
Log:
- For 2.11
- Backport 1.221, 1.223
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.196.4.21 loncom/interface/lonpreferences.pm:1.196.4.22
--- loncom/interface/lonpreferences.pm:1.196.4.21 Fri Sep 16 22:00:55 2016
+++ loncom/interface/lonpreferences.pm Fri Sep 16 22:47:17 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Preferences
#
-# $Id: lonpreferences.pm,v 1.196.4.21 2016/09/16 22:00:55 raeburn Exp $
+# $Id: lonpreferences.pm,v 1.196.4.22 2016/09/16 22:47:17 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1394,13 +1394,19 @@
my $output = '<form name="client" action="">'
.&Apache::lonhtmlcommon::start_pick_box();
if ($caller eq 'reset_by_email') {
+ my $mobileargs;
+ (undef,undef,undef,undef,undef,undef,my $clientmobile) =
+ &Apache::loncommon::decode_user_agent();
+ if ($clientmobile) {
+ $mobileargs = 'autocapitalize="off" autocorrect="off" ';
+ }
$output .= &Apache::lonhtmlcommon::row_title(
'<label for="email">'.$lt{'email'}.'</label>')
- .'<input type="text" name="email" size="30" />'
+ .'<input type="text" name="email" size="30" '.$mobileargs.'/>'
.&Apache::lonhtmlcommon::row_closure()
.&Apache::lonhtmlcommon::row_title(
'<label for="uname">'.$lt{'username'}.'</label>')
- .'<input type="text" name="uname" size="20" />'
+ .'<input type="text" name="uname" size="20" '.$mobileargs.'/>'
.'<input type="hidden" name="currentpass" value="'.$currentpass.'" />'
.&Apache::lonhtmlcommon::row_closure()
.&Apache::lonhtmlcommon::row_title(
More information about the LON-CAPA-cvs
mailing list