--- loncom/interface/lonsyllabus.pm 2017/06/22 02:11:27 1.138.2.3.2.1 +++ loncom/interface/lonsyllabus.pm 2017/02/18 19:05:51 1.141 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.138.2.3.2.1 2017/06/22 02:11:27 raeburn Exp $ +# $Id: lonsyllabus.pm,v 1.141 2017/02/18 19:05:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -178,7 +178,7 @@ sub handler { &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); } $r->print(&Apache::lonwrapper::wrapper($item,$brcrum,$env{'request.use_absolute'}, - undef,$is_pdf,'','','',&mt('Syllabus'))); + undef,$is_pdf,undef,&mt('Syllabus'))); } } return OK; @@ -205,7 +205,7 @@ sub handler { &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); } $r->print(&Apache::lonwrapper::wrapper($external,$brcrum,$env{'request.use_absolute'}, - $is_ext,$is_pdf,'','','',&mt('Syllabus'))); + $is_ext,$is_pdf,undef,&mt('Syllabus'))); } return OK; } @@ -627,16 +627,11 @@ function toggleEditor(pick) { var regexp = $urlregexp; -function extUrlPreview(caller,protocol) { +function extUrlPreview(caller) { if (document.getElementById(caller)) { var url = document.getElementById(caller).value; if (regexp.test(url)) { - var http_regex = /^http\:\/\//gi; - if ((protocol == 'https') && (http_regex.test(url))) { - window.open(url,"syllabuspreview","height=400,width=500,scrollbars=1,resizable=1,menubar=0,location=1"); - } else { - openMyModal(url,500,400,'yes'); - } + openMyModal(url,500,400,'yes'); } else { alert("$invurl"); } @@ -824,7 +819,6 @@ sub chooser { $checked{'templatebox'} = $check; $display{'templatebox'} = 'block'; } - my $protocol = ($ENV{'SERVER_PORT'} == 443?'https':'http'); my $output = '
'."\n". @@ -837,7 +831,7 @@ sub chooser { $output .= ''."\n". '
'."\n". '
'.$lt{'chourl'}.''."\n". - ''.$lt{'pr'}.' '."\n". + ''.$lt{'pr'}.' '."\n". ''."\n". ' '."\n". '
'."\n".