Changeset 717 for trunk/cgi-bin
- Timestamp:
- 05/06/15 17:28:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r707 r717 177 177 elsif($webvar{action} eq 'dosplit') { 178 178 doSplit(); 179 } 180 elsif($webvar{action} eq 'merge') { 181 prepMerge(); 179 182 } 180 183 elsif($webvar{action} eq 'delete') { … … 1205 1208 1206 1209 1210 # Set up for merge 1211 sub prepMerge { 1212 my $binfo = getBlockData($ip_dbh, $webvar{block}); 1213 $page->param(block => $webvar{block}); 1214 $page->param(ispool => $binfo->{type} =~ /.[dp]/); 1215 $page->param(ismaster => $binfo->{type} eq 'mm'); 1216 $page->param(oldblock => $binfo->{block}); 1217 $page->param(oldtype => $disp_alloctypes{$binfo->{type}}); 1218 $page->param(typelist => getTypeList($ip_dbh, 'n', $binfo->{type})); # down the rabbit hole we go... 1219 1220 # Tree navigation 1221 my $crumbs = getBreadCrumbs($ip_dbh, $binfo->{parent_id}); 1222 my @rcrumbs = reverse (@$crumbs); 1223 $utilbar->param(breadcrumb => \@rcrumbs); 1224 } # prepMerge() 1225 1226 1207 1227 # Delete an allocation. 1208 1228 sub remove {
Note:
See TracChangeset
for help on using the changeset viewer.