Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/public_html/manager/templates/default/element/tv/renders/input/ |
<input id="tv{$tv->id}" type="hidden" class="datefield" value="{$tv->value}" name="tv{$tv->id}" onblur="MODx.fireResourceFormChange();"/> <script type="text/javascript"> // <![CDATA[ {literal} Ext.onReady(function() { var fld = MODx.load({ {/literal} xtype: 'xdatetime' ,applyTo: 'tv{$tv->id}' ,name: 'tv{$tv->id}' ,dateFormat: MODx.config.manager_date_format ,timeFormat: MODx.config.manager_time_format {if $params.disabledDates},disabledDates: {$params.disabledDates}{/if} {if $params.disabledDays},disabledDays: {$params.disabledDays}{/if} {if $params.minDateValue},minDateValue: '{$params.minDateValue}'{/if} {if $params.maxDateValue},maxDateValue: '{$params.maxDateValue}'{/if} {if $params.startDay},startDay: {$params.startDay}{/if} {if $params.minTimeValue},minTimeValue: '{$params.minTimeValue}'{/if} {if $params.maxTimeValue},maxTimeValue: '{$params.maxTimeValue}'{/if} {if $params.timeIncrement},timeIncrement: {$params.timeIncrement}{/if} ,dateWidth: 120 ,timeWidth: 120 ,allowBlank: {if $params.allowBlank == 1 || $params.allowBlank == 'true'}true{else}false{/if} ,value: '{$tv->value}' ,msgTarget: 'under' {literal} ,listeners: { 'change': { fn:MODx.fireResourceFormChange, scope:this}} }); Ext.getCmp('modx-panel-resource').getForm().add(fld); }); {/literal} // ]]> </script>