JAVASCRIPT   42

time js

Guest on 16th June 2022 01:51:11 AM

  1. define(function(require, exports, module) {
  2.  
  3.         var $ = require('jquery');
  4.         var common = require('common');
  5.         require('epl/time/jquery.datetimepicker.css');
  6.         require('epl/time/jquery.datetimepicker');
  7.         exports.func = function(d){
  8.                 d = d.find('.ftype_day .fbox input');
  9.                 d.each(function(){
  10.                         $(this).datetimepicker({
  11.                                 lang:'ch',
  12.                                 timepicker:$(this).attr("data-day-type")==2?true:false,
  13.                                 format:$(this).attr("data-day-type")==2?'Y-m-d H:i:s':'Y-m-d'
  14.                         });
  15.                 });
  16.         }
  17. });

Raw Paste


Login or Register to edit or fork this paste. It's free.