Added support for html5time

This commit is contained in:
Doggie52 2013-07-04 15:00:58 +02:00
parent 2dcde6cb89
commit bb79027564

@ -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));
}(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));