[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonconfigsettings.pm
raeburn
raeburn at source.lon-capa.org
Mon Dec 10 18:31:38 EST 2012
raeburn Mon Dec 10 23:31:38 2012 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonconfigsettings.pm
Log:
- For 2.11
- Backport 1.22, 1.23.
Index: loncom/interface/lonconfigsettings.pm
diff -u loncom/interface/lonconfigsettings.pm:1.21.4.1 loncom/interface/lonconfigsettings.pm:1.21.4.2
--- loncom/interface/lonconfigsettings.pm:1.21.4.1 Wed May 2 20:32:37 2012
+++ loncom/interface/lonconfigsettings.pm Mon Dec 10 23:31:38 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: lonconfigsettings.pm,v 1.21.4.1 2012/05/02 20:32:37 raeburn Exp $
+# $Id: lonconfigsettings.pm,v 1.21.4.2 2012/12/10 23:31:38 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -93,9 +93,11 @@
formname.submit();
}'."\n";
if ($phase eq 'pickactions') {
+ $js .= &Apache::lonhtmlcommon::color_picker();
$js .=
&Apache::lonhtmlcommon::set_form_elements({actions => 'checkbox'})."\n";
} elsif ($phase eq 'display') {
+ $js .= &Apache::lonhtmlcommon::color_picker();
$js .= &color_pick_js()."\n";
}
$js .= &Apache::loncommon::viewport_size_js().'
@@ -147,7 +149,9 @@
}
my $dest='"javascript:changePage(document.'.$phase.','."'$newphase'".')"';
if ($phase eq 'process') {
- $r->print('<p><a href='.$dest.'>'.$button_text.'</a></p>');
+ $r->print(
+ &Apache::lonhtmlcommon::actionbox(
+ ['<a href='.$dest.'>'.$button_text.'</a>']));
} else {
my $onclick;
if ($phase eq 'display') {
More information about the LON-CAPA-cvs
mailing list