NOT using html5 input type="time", as there is (intentionally) no way to control time-format, but with current state of html5 support, our preference is more relyable and we dont want users to open bugs because we do not respect their EGroupware time-format preference

This commit is contained in:
Ralf Becker 2013-08-20 09:42:00 +00:00
parent 155f771cc4
commit d244ab7c79
2 changed files with 3 additions and 3 deletions

View File

@ -64,8 +64,7 @@ var et2_date = et2_inputWidget.extend(
this.span = $j(document.createElement("span")).addClass("et2_date");
this.input_date = $j(document.createElement("input"));
var type=(this._type == "date-timeonly" ? "time" : "text");
this.input_date.addClass("et2_date").attr("type", type).attr("size", 5)
this.input_date.addClass("et2_date").attr("type", "text").attr("size", 5)
.appendTo(this.span);
this.setDOMNode(this.span[0]);
@ -77,6 +76,7 @@ var et2_date = et2_inputWidget.extend(
}
else
{
this.input_date.addClass("et2_time");
this.egw().time(this.input_date);
}
// Update internal value when changed

View File

@ -353,7 +353,7 @@ span.et2_date input.et2_date {
background-position: top right;
background-size: contain;
}
span.et2_date input[type=time].et2_date {
span.et2_date input.et2_time {
min-width: 6ex;
}
span.et2_date span {