inherit html5 time input from abstract
This commit is contained in:
parent
85c5ff9fba
commit
0c8f3fb70f
@ -3,6 +3,7 @@ X-editable changelog
|
|||||||
|
|
||||||
Version 1.4.6 wip
|
Version 1.4.6 wip
|
||||||
----------------------------
|
----------------------------
|
||||||
|
[enh #286] added HTML5 time input (Doggie52)
|
||||||
[enh] add `defaultValue` option (vitalets)
|
[enh] add `defaultValue` option (vitalets)
|
||||||
[enh #313] add composer support (masim)
|
[enh #313] add composer support (masim)
|
||||||
[enh #300] Fix 'bootstrap popover falls off page if editable is too close to window edge' (belerweb)
|
[enh #300] Fix 'bootstrap popover falls off page if editable is too close to window edge' (belerweb)
|
||||||
|
@ -204,8 +204,14 @@ Time
|
|||||||
var Time = function (options) {
|
var Time = function (options) {
|
||||||
this.init('time', options, Time.defaults);
|
this.init('time', options, Time.defaults);
|
||||||
};
|
};
|
||||||
$.fn.editableutils.inherit(Time, $.fn.editabletypes.text);
|
//inherit from abstract, as inheritance from text gives selection error.
|
||||||
Time.defaults = $.extend({}, $.fn.editabletypes.text.defaults, {
|
$.fn.editableutils.inherit(Time, $.fn.editabletypes.abstractinput);
|
||||||
|
$.extend(Time.prototype, {
|
||||||
|
render: function() {
|
||||||
|
this.setClass();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Time.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {
|
||||||
tpl: '<input type="time">'
|
tpl: '<input type="time">'
|
||||||
});
|
});
|
||||||
$.fn.editabletypes.time = Time;
|
$.fn.editabletypes.time = Time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user