--- loncom/interface/lonpreferences.pm 2011/12/06 16:17:07 1.195 +++ loncom/interface/lonpreferences.pm 2012/05/25 14:53:36 1.196.4.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # Preferences # -# $Id: lonpreferences.pm,v 1.195 2011/12/06 16:17:07 dseaton Exp $ +# $Id: lonpreferences.pm,v 1.196.4.3 2012/05/25 14:53:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -227,7 +227,7 @@ sub texenginechanger { 'tth' => 'tth (TeX to HTML)', #'ttm' => 'TeX to MathML', 'jsMath' => 'jsMath', - 'MathJax' => 'MathJax', + 'MathJax' => 'MathJax', 'mimetex' => 'mimetex (Convert to Images)', 'raw' => 'Raw (Screen Reader)' ); @@ -1207,16 +1207,10 @@ sub colorschanger { $r->print(< - function pclose() { - parmwin=window.open("/adm/rat/empty.html","LONCAPAparms", - "height=350,width=350,scrollbars=no,menubar=no"); - parmwin.close(); - } - $pjump_def function psub() { - pclose(); + modalWindow.close(); if (document.parmform.pres_marker.value!='') { if (document.parmform.pres_type.value!='') { eval('document.prefs.'+ @@ -2108,6 +2102,25 @@ push(@{ $menu[0]->{items} }, { linktitle => 'Change your password.', }); } + if ($env{'environment.remote'} eq 'off') { +push(@{ $menu[1]->{items} }, { + linktext => 'Launch Remote Control', + url => '/adm/remote?url=/adm/preferences&action=launch', + permission => 'F', + #help => '', + icon => 'remotecontrol.png', + linktitle => 'Launch the remote control for LON-CAPA.', + }); + }else{ +push(@{ $menu[1]->{items} }, { + linktext => 'Collapse Remote Control', + url => '/adm/remote?url=/adm/preferences&action=collapse', + permission => 'F', + #help => '', + icon => 'remotecontrol.png', + linktitle => 'Collapse the remote control for LON-CAPA.', + }); + } if (&can_toggle_namelocking()) { push(@{ $menu[0]->{items} }, {