--- loncom/interface/lonhtmlcommon.pm 2012/05/29 01:11:30 1.317 +++ loncom/interface/lonhtmlcommon.pm 2012/10/08 10:26:34 1.326 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.317 2012/05/29 01:11:30 raeburn Exp $ +# $Id: lonhtmlcommon.pm,v 1.326 2012/10/08 10:26:34 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -209,9 +209,10 @@ dependencies for a web page uploaded dir =cut sub dependencycheck_js { - my ($symb,$title) = @_; + my ($symb,$title,$url) = @_; my $link = '/adm/dependencies?symb='.&HTML::Entities::encode($symb,'<>&"'). - '&title='.&HTML::Entities::encode($title,'<>&"'); + '&title='.&HTML::Entities::encode($title,'<>&"'). + '&url='.&HTML::Entities::encode($url,'<>&"'); return < // + + + + ENDJQUERY return $s; } @@ -1225,6 +1231,17 @@ sub htmlarea_lang { return $lang; } +# return javacsript to activate elements of .colorchooser with jpicker: +# Caller is responsible for enclosing this in