Author Topic: timepicker Uncaught TypeError: Cannot read property 'reverse' of null  (Read 4379 times)

stoodin

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
No Worries. My bad. Formatting exception. Fixed.

Hi guys,
I've implemented the timepicker custom editor but it throws me an exception all the time I pick a value.
Here is my code:
    var timePickerEditor = function (ui) {
        var $cell = ui.$cell,
            dataIndx = ui.dataIndx,
            cls = ui.cls;
         
        var $inp = $("<input type='text' name='" + dataIndx + "' class='" + cls + " pq-date-editor' />")
        .appendTo($cell)
        .timepicker({
            controlType: 'select',
            timeFormat: 'H:i',
            stepMinute: 30
            ,onClose: function () {
                $inp.focus();
            }
        });
    }
« Last Edit: April 17, 2014, 08:45:08 pm by stoodin »