version 1.484.2.67, 2016/11/30 00:41:24
|
version 1.484.2.68, 2016/11/30 18:05:43
|
Line 3180 sub editor {
|
Line 3180 sub editor {
|
my $readfile="/uploaded/$coursedom/$coursenum/$folder.$container"; |
my $readfile="/uploaded/$coursedom/$coursenum/$folder.$container"; |
$r->print(&generate_edit_table($tid,$orderhash,$to_show,$iconpath, |
$r->print(&generate_edit_table($tid,$orderhash,$to_show,$iconpath, |
$jumpto,$readfile,$need_save,"$folder.$container",$canedit)); |
$jumpto,$readfile,$need_save,"$folder.$container",$canedit)); |
if ($canedit) |
if ($canedit) { |
&print_paste_buffer($r,$container,$folder,$coursedom,$coursenum); |
&print_paste_buffer($r,$container,$folder,$coursedom,$coursenum); |
} |
} |
} else { |
} else { |
Line 4994 sub handler {
|
Line 4994 sub handler {
|
} |
} |
} |
} |
my $tabidstr = join("','",@tabids); |
my $tabidstr = join("','",@tabids); |
$script .= &editing_js($udom,$uname,$supplementalflag,$coursedom,$coursenum |
$script .= &editing_js($udom,$uname,$supplementalflag,$coursedom,$coursenum, |
$canedit,\$navmap). |
$canedit,\$navmap). |
&history_tab_js(). |
&history_tab_js(). |
&inject_data_js(). |
&inject_data_js(). |
Line 5592 unless ($container eq 'page') {
|
Line 5592 unless ($container eq 'page') {
|
unless (($supplementalflag || $toolsflag)) { |
unless (($supplementalflag || $toolsflag)) { |
my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$crstype, |
my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$crstype, |
$supplementalflag,\%orderhash,$iconpath,$pathitem, |
$supplementalflag,\%orderhash,$iconpath,$pathitem, |
$canedit,\$navmap,$hiddentop)); |
$canedit,\$navmap,$hiddentop); |
undef($navmap); |
undef($navmap); |
if ($error) { |
if ($error) { |
$r->print('<p><span class="LC_error">'.$error.'</span></p>'); |
$r->print('<p><span class="LC_error">'.$error.'</span></p>'); |