2016-05-13 5 views
0

私はMVCアプリケーションを作成していて、ユーザーはdatetimepickerに値が6の間隔に切り替えることができるかどうかを尋ねました。 datetimepickerのこの部分にそうDateTimePickerの値を変更します

enter image description here

00に値を変更する方法はあり、061218、など?

何か助けていただければ幸いです。

答えて

0

見つけました。

元のDateTimePickerは、このオフに基づいた:

step = options.stepping === 1 ? 6 : options.stepping;

fillMinutes = function() { 
      var table = widget.find('.timepicker-minutes table'), 
       currentMinute = viewDate.clone().startOf('h'), 
       html = [], 
       row = $('<tr>'), 
       step = options.stepping === 1 ? 5 : options.stepping; 

      while (viewDate.isSame(currentMinute, 'h')) { 
       if (currentMinute.minute() % (step * 4) === 0) { 
        row = $('<tr>'); 
        html.push(row); 
       } 
       row.append('<td data-action="selectMinute" class="minute' + (!isValid(currentMinute, 'm') ? ' disabled' : '') + '">' + currentMinute.format('mm') + '</td>'); 
       currentMinute.add(step, 'm'); 
      } 
      table.empty().append(html); 
     }, 

は私はにstep = options.stepping === 1 ? 5 : options.stepping;を変更

関連する問題