diff --git a/src/inputs/html5types.js b/src/inputs/html5types.js index 3ec5353..18a972e 100644 --- a/src/inputs/html5types.js +++ b/src/inputs/html5types.js @@ -8,6 +8,7 @@ Following types are supported: * tel * number * range +* time Learn more about html5 inputs: http://www.w3.org/wiki/HTML5_form_additions @@ -192,4 +193,20 @@ Range (inherit from number) inputclass: 'input-medium' }); $.fn.editabletypes.range = Range; -}(window.jQuery)); \ No newline at end of file +}(window.jQuery)); + +/* +Time +*/ +(function ($) { + "use strict"; + + var Time = function (options) { + this.init('time', options, Time.defaults); + }; + $.fn.editableutils.inherit(Time, $.fn.editabletypes.text); + Time.defaults = $.extend({}, $.fn.editabletypes.text.defaults, { + tpl: '<input type="time">' + }); + $.fn.editabletypes.time = Time; +}(window.jQuery));