Revision 532

Date:
2015/11/27 11:49:22
Author:
ahitrov
Revision Log:
autocomplete=off for inline fields

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/comps/contenido/components/section_browse.msn

     
    176 176 % %{ $options } = %{ $toopi->{$document->class} };
    177 177 % }
    178 178 % my $values = $options->{$col->{attr}};
    179 <td><select name="<% 'update_'.$document->id.'_'.$attr %>">
    179 <td><select name="<% 'update_'.$document->id.'_'.$attr %>" autocomplete="off">
    180 180 % if ( ref $values eq 'ARRAY' ) {
    181 181 % foreach my $val ( @$values ) {
    182 182 % my $selected = $val eq $document->$attr ? ' selected' : '';
     
    187 187 % } elsif ($col->{type} eq 'status') {
    188 188 % my $cases = $col->{cases};
    189 189 % if ( ref $cases eq 'ARRAY' ) {
    190 <td><select name="<% 'update_'.$document->id.'_'.$attr %>" style="<% $col->{inline_width} ? 'width:'.$col->{inline_width}.'px;' : '' %> <% $col->{inline_style} || '' %>">
    190 <td><select name="<% 'update_'.$document->id.'_'.$attr %>" style="<% $col->{inline_width} ? 'width:'.$col->{inline_width}.'px;' : '' %> <% $col->{inline_style} || '' %>" autocomplete="off">
    191 191 % foreach my $case ( @$cases ) {
    192 192 % my $selected = $case->[0] eq $document->$attr ? ' selected' : '';
    193 193 <option value="<% $case->[0] %>"<% $selected %>><% $case->[1] %>
     
    216 216 % $lookup_elements{$col->{attr}} = $docs;
    217 217 % }
    218 218 % if ( ref $docs eq 'ARRAY' && @$docs ) {
    219 <td><select name="<% 'update_'.$document->id.'_'.$attr %>" style="<% $col->{inline_width} ? 'width:'.$col->{inline_width}.'px;' : '' %> <% $col->{inline_style} || '' %>">
    219 <td><select name="<% 'update_'.$document->id.'_'.$attr %>" style="<% $col->{inline_width} ? 'width:'.$col->{inline_width}.'px;' : '' %> <% $col->{inline_style} || '' %>" autocomplete="off">
    220 220 <option value="<% $col->{allow_null} ? '' : 0 %>"></option>
    221 221 % foreach my $case ( @$docs ) {
    222 222 % my $selected = $case->[0] eq $document->$attr ? ' selected' : '';