--- loncom/interface/loncommon.pm 2007/09/25 22:58:48 1.588 +++ loncom/interface/loncommon.pm 2007/11/01 14:05:26 1.605 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.588 2007/09/25 22:58:48 albertel Exp $ +# $Id: loncommon.pm,v 1.605 2007/11/01 14:05:26 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -407,7 +407,7 @@ sub coursebrowser_javascript { '&cdomelement='+udom+ '&cnameelement='+desc; if (extra_element !=null && extra_element != '') { - if (formname == 'rolechoice') { + if (formname == 'rolechoice' || formname == 'studentform') { url += '&roleelement='+extra_element; if (domainfilter == null || domainfilter == '') { url += '&domainfilter='+extra_element; @@ -1074,48 +1074,95 @@ sub changable_area { =pod -=item * resize_textarea_js - -emits the needed javascript to resize a textarea to be as big as possible - -creates a function resize_textrea that takes two IDs first should be -the id of the element to resize, second should be the id of a div that -surrounds everything that comes after the textarea, this routine needs -to be attached to the for the onload and onresize events. +=item * viewport_geometry_js { +Provides javascript object (Geometry) which can provide information about the viewport geometry for the client browser. =cut -sub resize_textarea_js { - return <<"RESIZE"; -