--- loncom/interface/lonhtmlcommon.pm 2012/01/02 20:38:18 1.299 +++ loncom/interface/lonhtmlcommon.pm 2012/03/20 13:36:19 1.303 @@ -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.303 2012/03/20 13:36:19 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1072,6 +1072,8 @@ sub Close_PrgWin { sub crumbs { my ($uri,$target,$prefix,$form,$skiplast)=@_; +# You cannot crumbnify uploaded or adm resources + if ($uri=~/^\/*(uploaded|adm)\//) { return &mt('(Internal Course/Group Content)'); } if ($target) { $target = ' target="'. &Apache::loncommon::escape_single($target).'"'; @@ -1170,6 +1172,9 @@ ENDEDITOR + + ENDJQUERY return $s; } @@ -1298,6 +1303,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 +2011,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 .= '