|
|
|
|
@ -106,7 +106,7 @@
|
|
|
|
|
<li class="tit">1. 위치 정보</li>
|
|
|
|
|
<li class="rig">
|
|
|
|
|
<button type="button" id="pstnInfoRegistBtn" class="newbtn bg2-1">위치정보 추가</button>
|
|
|
|
|
<button type="button" id="pstnInfoDeleteBtn" class="newbtn bg2">삭제</button>
|
|
|
|
|
<button type="button" id="pstnInfoDeleteBtn" class="newbtn bg6">삭제</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="containers">
|
|
|
|
|
@ -120,7 +120,7 @@
|
|
|
|
|
<li class="tit">2. 소유자 정보</li>
|
|
|
|
|
<li class="rig">
|
|
|
|
|
<button type="button" id="ownrSelectBtn" class="newbtn bg2-1">소유자 선택</button>
|
|
|
|
|
<button type="button" id="ownrRemoveBtn" class="newbtn bg2" style="margin-left: 5px;">제거</button>
|
|
|
|
|
<button type="button" id="ownrRemoveBtn" class="newbtn bg6" style="margin-left: 5px;">삭제</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="containers">
|
|
|
|
|
@ -137,7 +137,7 @@
|
|
|
|
|
<li class="tit">3. 불법행위 정보</li>
|
|
|
|
|
<li class="rig">
|
|
|
|
|
<button type="button" id="actInfoRegistBtn" class="newbtn bg2-1">불법행위 추가</button>
|
|
|
|
|
<button type="button" id="actInfoDeleteBtn" class="newbtn bg2" style="margin-left: 5px;">삭제</button>
|
|
|
|
|
<button type="button" id="actInfoDeleteBtn" class="newbtn bg6" style="margin-left: 5px;">삭제</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="containers">
|
|
|
|
|
@ -443,21 +443,31 @@
|
|
|
|
|
* 위치정보 그리드 데이터 유무에 따라 소유자 선택/제거 버튼을 활성화/비활성화
|
|
|
|
|
*/
|
|
|
|
|
updateOwnrButtonsState: function(hasLocationData) {
|
|
|
|
|
var $ownrSelectBtn = $('#ownrSelectBtn');
|
|
|
|
|
var $ownrRemoveBtn = $('#ownrRemoveBtn');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (hasLocationData) {
|
|
|
|
|
// 위치정보가 있을 때 버튼 활성화
|
|
|
|
|
$ownrSelectBtn.prop('disabled', false);
|
|
|
|
|
$ownrRemoveBtn.prop('disabled', false);
|
|
|
|
|
$ownrSelectBtn.removeClass('disabled');
|
|
|
|
|
$ownrRemoveBtn.removeClass('disabled');
|
|
|
|
|
$('#ownrSelectBtn').prop('disabled', false);
|
|
|
|
|
$('#ownrRemoveBtn').prop('disabled', false);
|
|
|
|
|
$('#ownrSelectBtn').removeClass('disabled');
|
|
|
|
|
$('#ownrRemoveBtn').removeClass('disabled');
|
|
|
|
|
|
|
|
|
|
$('#actInfoRegistBtn').prop('disabled', false);
|
|
|
|
|
$('#actInfoDeleteBtn').prop('disabled', false);
|
|
|
|
|
$('#actInfoRegistBtn').removeClass('disabled');
|
|
|
|
|
$('#actInfoDeleteBtn').removeClass('disabled');
|
|
|
|
|
} else {
|
|
|
|
|
// 위치정보가 없을 때 버튼 비활성화
|
|
|
|
|
$ownrSelectBtn.prop('disabled', true);
|
|
|
|
|
$ownrRemoveBtn.prop('disabled', true);
|
|
|
|
|
$ownrSelectBtn.addClass('disabled');
|
|
|
|
|
$ownrRemoveBtn.addClass('disabled');
|
|
|
|
|
$('#ownrSelectBtn').prop('disabled', true);
|
|
|
|
|
$('#ownrRemoveBtn').prop('disabled', true);
|
|
|
|
|
$('#ownrSelectBtn').addClass('disabled');
|
|
|
|
|
$('#ownrRemoveBtn').addClass('disabled');
|
|
|
|
|
|
|
|
|
|
$('#actInfoRegistBtn').prop('disabled', true);
|
|
|
|
|
$('#actInfoDeleteBtn').prop('disabled', true);
|
|
|
|
|
$('#actInfoRegistBtn').addClass('disabled');
|
|
|
|
|
$('#actInfoDeleteBtn').addClass('disabled');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|