--- loncom/interface/lonhtmlcommon.pm 2010/01/26 05:22:03 1.264 +++ loncom/interface/lonhtmlcommon.pm 2010/03/11 12:15:19 1.268 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.264 2010/01/26 05:22:03 faziophi Exp $ +# $Id: lonhtmlcommon.pm,v 1.268 2010/03/11 12:15:19 wenzelju Exp $ # # Copyright Michigan State University Board of Trustees # @@ -90,7 +90,7 @@ Successful completion of an operation me sub confirm_success { my ($message,$failure)=@_; if ($failure) { - return ''."\n" + return ''."\n" .''.&mt('Error').' '."\n" .$message."\n" .''."\n"; @@ -1061,7 +1061,7 @@ sub Increment_PrgWin { # my $str; if ($min == 0 && $sec > 1) { - $str = '[_2] seconds'; + $str = '[_1] seconds'; } elsif ($min == 1 && $sec > 1) { $str = '1 minute [_2] seconds'; } elsif ($min == 1 && $sec < 2) { @@ -1283,7 +1283,6 @@ sub htmlarea_lang { sub htmlareaselectactive { my @fields=@_; unless (&htmlareabrowser()) { return ''; } - #if (&htmlareablocked()) { return '
'.&enablelink(@fields); } my $output='
'. - &disablelink(@fields); + .'
'; return $output; }