Revision 451

Date:
2014/11/18 14:43:14
Author:
ahitrov
Revision Log:
Deblock button if only one option available
Files:

Legend:

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

     
    5 5 <td width="100%">
    6 6 <& "/contenido/components/select.msn", name=>'class', values=>$classes, check=>$default, style=>'width:100%;', onChange => "set_create_button(this, 'create_$btn_id')" &>
    7 7 </td>
    8 <td><input id="create_<% $btn_id %>" type="submit" value="Создать"<% $default ? '' : ' disabled="disabled"' %>></td>
    8 <td><input id="create_<% $btn_id %>" type="submit" value="Создать"<% $default || scalar @class == 1 ? '' : ' disabled="disabled"' %>></td>
    9 9 <td><input type="hidden" name="sect_id" value="<% $sect_id %>"></td>
    10 10 </tr></table>
    11 11 </div></form>