- 다중라인 값 편집 및 줄바꿈 지원 PRPTY2VAL 속성 수정 - prpty2Val 입력 필드 텍스트 영역으로 변경 및 스타일 추가 - jQuery 선택자 간소화 `<input>` → `<textarea>` for consistency
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
if ($('input[name=prptyName]').val() == "") {
|
if ($('input[name=prptyName]').val() == "") {
|
||||||
alert("<%= localeMessage.getString("propertyDetail.checkRequired2") %>");
|
alert("<%= localeMessage.getString("propertyDetail.checkRequired2") %>");
|
||||||
return false;
|
return false;
|
||||||
} else if ($('input[name=prpty2Val]').val() == "") {
|
} else if ($('[name=prpty2Val]').val() == "") {
|
||||||
alert("<%= localeMessage.getString("propertyDetail.checkRequired3") %>");
|
alert("<%= localeMessage.getString("propertyDetail.checkRequired3") %>");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,19 @@
|
|||||||
'설명',
|
'설명',
|
||||||
'<%= localeMessage.getString("propertyDetail.delYn") %>'],
|
'<%= localeMessage.getString("propertyDetail.delYn") %>'],
|
||||||
colModel: [{name: 'PRPTYNAME', width: 50, align: 'left', editable: true},
|
colModel: [{name: 'PRPTYNAME', width: 50, align: 'left', editable: true},
|
||||||
{name: 'PRPTY2VAL', width: 150, align: 'left', editable: true},
|
{
|
||||||
|
name: 'PRPTY2VAL',
|
||||||
|
width: 150,
|
||||||
|
align: 'left',
|
||||||
|
editable: true,
|
||||||
|
//다행(멀티라인) 값 편집 — 관련 사이트 목록처럼 줄 단위 표기하는 값 지원
|
||||||
|
edittype: 'textarea',
|
||||||
|
editoptions: {rows: 3, cols: 60},
|
||||||
|
//줄바꿈이 그리드에서도 그대로 보이도록
|
||||||
|
cellattr: function () {
|
||||||
|
return ' style="white-space:pre-line; word-break:break-all;"';
|
||||||
|
}
|
||||||
|
},
|
||||||
{name: 'PRPTYDESC', width: 200, align: 'left', editable: true, edittype: 'textarea', editoptions: {rows: 2}},
|
{name: 'PRPTYDESC', width: 200, align: 'left', editable: true, edittype: 'textarea', editoptions: {rows: 2}},
|
||||||
{
|
{
|
||||||
name: 'DELETEYN',
|
name: 'DELETEYN',
|
||||||
@@ -265,7 +277,7 @@
|
|||||||
}
|
}
|
||||||
var data = new Object();
|
var data = new Object();
|
||||||
data["PRPTYNAME"] = $("input[name=prptyName]").val();
|
data["PRPTYNAME"] = $("input[name=prptyName]").val();
|
||||||
data["PRPTY2VAL"] = $("input[name=prpty2Val]").val();
|
data["PRPTY2VAL"] = $("[name=prpty2Val]").val();
|
||||||
data["PRPTYDESC"] = $("input[name=prptyDesc]").val();
|
data["PRPTYDESC"] = $("input[name=prptyDesc]").val();
|
||||||
|
|
||||||
var rows = $("#grid")[0].rows;
|
var rows = $("#grid")[0].rows;
|
||||||
@@ -346,7 +358,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th><%= localeMessage.getString("propertyDetail.propertyValue") %>
|
<th><%= localeMessage.getString("propertyDetail.propertyValue") %>
|
||||||
</th>
|
</th>
|
||||||
<td colspan="3"><input type="text" name="prpty2Val"/>
|
<td colspan="3"><textarea name="prpty2Val" rows="3"
|
||||||
|
style="width:100%; box-sizing:border-box; resize:vertical;"></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user