Revision 323
- Date:
- 2013/04/28 20:27:13
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/core/comps/contenido/components/inputs/datetime.msn
25 25 } 26 26 //--> 27 27 </script> 28 % if ( $prop->{allow_null} ) { 29 <span style="padding-left:20px;"><a href="javascript:void(0)" onclick="set_<% $prop->{attr} %>_clear()" style="color:red;">Очистить!</a></span> 30 <script type="text/javascript"> 31 <!-- 32 function set_<% $prop->{attr} %>_clear () { 33 document.forms['form'].elements['<% $prop->{attr} %>_day'].value = ''; 34 document.forms['form'].elements['<% $prop->{attr} %>_month'].value = ''; 35 document.forms['form'].elements['<% $prop->{attr} %>_year'].value = ''; 36 document.forms['form'].elements['<% $prop->{attr} %>_hour'].value = ''; 37 document.forms['form'].elements['<% $prop->{attr} %>_minute'].value = ''; 38 % unless ( $prop->{noseconds} ) { 39 document.forms['form'].elements['<% $prop->{attr} %>_second'].value = ''; 40 % } 41 } 42 //--> 43 </script> 44 % } 28 45 % } 29 46 <%args> 30 47 $prop