--- loncom/interface/lonhtmlcommon.pm 2012/01/02 20:38:18 1.299 +++ loncom/interface/lonhtmlcommon.pm 2012/02/29 09:58:21 1.302 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.299 2012/01/02 20:38:18 raeburn Exp $ +# $Id: lonhtmlcommon.pm,v 1.302 2012/02/29 09:58:21 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1170,6 +1170,9 @@ ENDEDITOR + + ENDJQUERY return $s; } @@ -1298,6 +1301,9 @@ sub htmlareaselectactive { $(this).before("
"); $("#LC_rt_"+id).click(editorHandler); }); + $.fn.jPicker.defaults.images.clientPath="/adm/jpicker/images/"; + $(".colorchooser").jPicker(); + }); '; if ($dragmath_prefix ne '') { @@ -2003,26 +2009,41 @@ sub course_custom_roles { sub resource_info_box { - my ($symb,$onlyfolderflag)=@_; + my ($symb,$onlyfolderflag,$stuvcurrent,$stuvdisp)=@_; my $return=''; + if ($stuvcurrent ne '') { + $return = ''.&mt('No context provided.').'
'; } + if ($stuvcurrent ne '') { + $return .= '