提交 b7b65aaa 编写于 作者: 傻拖

增加时间选择方式

上级 d557e65f
......@@ -9,7 +9,7 @@ o2.widget.Calendar = o2.Calendar = new Class({
"defaultView": "day", //day, month, year
"baseDate": new Date(),
"secondEnable" : false,
"secondSelectType" : "slider",
"timeSelectType" : "slider",
"isTime": false,
"isMulti": false,
"before": null,
......@@ -963,7 +963,7 @@ o2.widget.Calendar = o2.Calendar = new Class({
//this.showMNode.set("text", sel.options[sel.selectedIndex].get("value"));
}else{
if(this.options.secondSelectType === "select"){
if(this.options.timeSelectType === "select"){
this.itmeHNode = this.contentTimeTable.getElement(".MWF_calendar_time_h").empty();
this.itmeMNode = this.contentTimeTable.getElement(".MWF_calendar_time_m").empty();
......
......@@ -50,10 +50,10 @@
</td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.secondSelectType}}:</td>
<td class="editTableTitle">{{$.lp.timeSelectType}}:</td>
<td class="editTableValue">
<input type="radio" name="secondSelectType" value="slider" text{$.secondSelectType=='select'||!$.secondSelectType ?'checked':''}/>滑块
<input type="radio" name="secondSelectType" value="select" text{$.secondSelectType=='slider' ?'checked':''}/>下拉
<input type="radio" name="timeSelectType" value="slider" text{$.timeSelectType=='select'||!$.timeSelectType ?'checked':''}/>滑块
<input type="radio" name="timeSelectType" value="select" text{$.timeSelectType=='slider' ?'checked':''}/>下拉
</td>
</tr>
<tr>
......
......@@ -522,7 +522,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"yearOnly": "YearOnly",
"timeOnly": "TimeOnly",
"selectSecond": "Select Second",
"secondSelectType": "Second Select Type",
"timeSelectType": "Time Select Type",
"format": "Format",
"selectStyle": "Select Style",
......
......@@ -520,7 +520,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"yearOnly": "仅年度",
"timeOnly": "仅时间",
"selectSecond": "是否选择秒",
"secondSelectType": "选择方式",
"timeSelectType": "时间选择方式",
"format": "格式化",
"selectStyle": "Select样式",
......
......@@ -127,7 +127,7 @@ MWF.xApplication.process.Xform.Calendar = MWF.APPCalendar = new Class(
var options = {
"style": layout.mobile ? "xform_mobile" : "xform",
"secondEnable" : this.json.isSelectSecond,
"secondSelectType" : this.json.secondSelectType,
"timeSelectType" : this.json.timeSelectType,
"isTime": (this.json.selectType==="datetime" || this.json.selectType==="time"),
"timeOnly": (this.json.selectType === "time"),
"monthOnly" : (this.json.selectType === "month"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册