Index: section_browse.msn =================================================================== --- section_browse.msn (revision 521) +++ section_browse.msn (revision 522) @@ -11,7 +11,7 @@ }); } % if ( @inline_pickups ) { -$().ready(function() { +$(document).ready(function() { % foreach my $pickup ( @inline_pickups ) { % my $lookup_opts = $pickup->{lookup_opts}; % my $search_opts = join( '&', map { $_.'='.$lookup_opts->{$_} } keys %$lookup_opts ); @@ -130,7 +130,7 @@ % my $name=$document->name ? $document->name : 'Безымянный документ N'.$document->id; % if ($document_access == 2) { % -contenido_status_style ? ' style="' . $document->contenido_status_style . '"' : '' %> href="document.html?id=<% $document->id %>&class=<% $document->class %><% $params_unclassed ? '&'.$params_unclassed : '' %>"><% $name | h %> \ +contenido_status_style ? ' style="' . $document->contenido_status_style . '"' : '' %> href="document.html?id=<% $document->id %>&class=<% $document->class %><% $params_unclassed ? '&'.$params_unclassed : '' %>"><% $name | h %>\ % % } else { % @@ -157,6 +157,9 @@ % my $style = $col->{inline_style} ? $col->{inline_style} : ($col->{type} =~ /^(integer|float)$/ ? 'text-align:right; ' : '' ); % $style .= $col->{inline_width} ? ' width:'.$col->{inline_width}.'px; ' : ' width:65px; '; +% } elsif ($col->{type} eq 'checkbox') { +% my $checked = $document->$attr ? ' checked' : ''; +> % } elsif ($col->{type} eq 'text') { % my $style = $col->{inline_style} ? $col->{inline_style} : ''; % $style .= $col->{inline_width} ? ' width:'.$col->{inline_width}.'px; ' : ' width:100px; '; @@ -167,9 +170,6 @@ % s/>/>/sgi; % } -% } elsif ($col->{type} eq 'checkbox') { -% my $checked = $document->$attr ? ' checked' : ''; -> % } elsif ($col->{type} eq 'select') { % my $options = {}; % if ($toopi && (ref($toopi) eq 'HASH') && (exists($toopi->{$document->class}))) { @@ -224,10 +224,10 @@ % } % } else { -<% $document->$attr %>\ +<% $document->$attr %>\ % } % } else { - +<% $document->$attr %>\ % } % % } elsif ($col->{attr} eq 'class') { @@ -317,10 +317,20 @@ % } % } +% if ( $section->default_document_class || $section->default_table_class ) { +
+<& /contenido/components/inputs/parent.msn, name => 'tree', check => $section->id, style => 'width:100%;' &> +
+ +
+
+% } % if ( $inline_status || $delete_status ) { -
+
% if ( $inline_status ) { - +\ % } % if ( $delete_status ) { @@ -327,12 +337,6 @@ % }
% } -% if ( $section->default_document_class || $section->default_table_class ) { -
-<& /contenido/components/inputs/parent.msn, name => 'tree', check => $section->id &> - -
-% }
<%args>