--- loncom/html/adm/helper/newslot.helper 2011/12/18 17:15:08 1.28
+++ loncom/html/adm/helper/newslot.helper 2015/09/23 23:05:04 1.31
@@ -220,11 +220,19 @@
usable for any resource.
+ restricted to resources in a specific folder/composite page.
restricted to a specific resource.
my $default=&{$helper->{DATA}{origslot}}('symb');
- if ($default) { return 'resource'; }
- return 'any';
+ if ($default) {
+ if ($default =~ /\.(page|sequence)$/) {
+ return 'map';
+ } else {
+ return 'resource';
+ }
+ } else {
+ return 'any';
+ }
@@ -256,6 +264,18 @@
+
+
+ PROCTOR
+
+
+ return $res->is_map()
+ return $res->symb()
+
+ return &{$helper->{DATA}{origslot}}('symb');
+
+
+
@@ -314,7 +334,7 @@
-
+
Created Slot
@@ -396,6 +416,9 @@
my $ret = &Apache::lonnet::cput('slots',
{$helper->{'VARS'}{'name'} => \%slot},
$cdom,$cname);
+ if ($ret eq 'ok') {
+ &Apache::lonnet::devalidate_slots_cache($cname,$cdom);
+ }
$result.="\n ".'Name: '.&HTML::Entities::encode($helper->{'VARS'}{'name'}).''.
"\n".' Starts: '.&Apache::lonlocal::locallocaltime($slot{'starttime'}).''.
"\n".' Ends: '.&Apache::lonlocal::locallocaltime($slot{'endtime'}).''.