--- loncom/interface/lonextresedit.pm 2016/06/06 17:40:48 1.10 +++ loncom/interface/lonextresedit.pm 2016/11/22 00:43:12 1.11 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: lonextresedit.pm,v 1.10 2016/06/06 17:40:48 raeburn Exp $ +# $Id: lonextresedit.pm,v 1.11 2016/11/22 00:43:12 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -302,7 +302,7 @@ sub update_exttool { sub extedit_form { my ($supplementalflag,$residx,$orig_url,$orig_title,$pathitem,$helpitem,$caller, - $symb,$type,$cdom,$cnum,$ltitools) = @_; + $symb,$type,$cdom,$cnum,$ltitools,$disabled) = @_; if ($type ne 'tool') { $type = 'ext'; } @@ -399,7 +399,7 @@ sub extedit_form { $orig_url = 'http://'; $orig_title = $lt{'ex'}; $extsrc = $lt{'ul'}.':
'; - $preview = ''; + $preview = ''; $save = $lt{'al'}; } else { $orig_title = $lt{'et'}; @@ -410,7 +410,7 @@ sub extedit_form { } $formid = $formname; if ($type eq 'ext') { - $urlelem = ''; + $urlelem = ''; } else { my $class = 'LC_nobreak'; if ($residx) { @@ -459,7 +459,7 @@ sub extedit_form { } else { $toolelem = ''."\n". ''.&mt('iframe').''.(' 'x2). + "'$toolattr{dimendiv}','$toolattr{dimenwidth}','$toolattr{dimenheight}'".');"'.$disabled.'>'.&mt('iframe').''.(' 'x2). ''. + "'$toolattr{dimendiv}','$toolattr{dimenwidth}','$toolattr{dimenheight}'".');"'.$disabled.'>'.&mt('window').''. '
'. ''. - &mt('Width').''.(' 'x2). - &mt('Height').''."\n". + &mt('Width').''.(' 'x2). + &mt('Height').''."\n". '
'. '
'. ''.&mt('Course label:').' '. - '
'. + '
'. '
'. '
'. ''.&mt('Course title:').' '. - '
'. + '
'. '
'; } my $chooser = $toolelem; @@ -524,11 +524,11 @@ $chooser
$title - + $pathitem $hiddenelem - +