|
@@ -8,7 +8,7 @@ $( function(){
|
|
|
$( "#ex_select" ).siblings('label').text( $( "#ex_select" ).children('option:selected').text() );
|
|
|
|
|
|
$.validator.addMethod('selectcheck', function (value) {
|
|
|
- console.log( value );
|
|
|
+ console.log( value );
|
|
|
return (value != "0" );
|
|
|
}, "" );
|
|
|
|
|
@@ -71,27 +71,11 @@ $( function(){
|
|
|
|
|
|
|
|
|
|
|
|
-// $( "#locationList" ).on( "change", function(){
|
|
|
-// if($('#locationList > option:selected').val() != "0") {
|
|
|
-// console.log($('#locationList').val());
|
|
|
-// // $('#centerDiv').css("display", "block");
|
|
|
+ $( "#locationList" ).on( "change", function(){
|
|
|
+ if($('#locationList > option:selected').val() != "0") {
|
|
|
+ console.log($('#locationList').val());
|
|
|
+// $('#centerDiv').css("display", "block");
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
-// $( "#centerList option" ).hide();
|
|
|
-// if ($( "#centerList option[accessKey='"+$('#locationList').val()+"']" ).length == 0) {
|
|
|
-// $("#centerLabel").text("등록된 생활치료센터가 없습니다.");
|
|
|
-// // var option = "<option value='99' selected>등록된 생활치료센터가 없습니다.</option>";
|
|
|
-// // $('#centerList').append(option);
|
|
|
-// } else {
|
|
|
-// $("#centerLabel").text("치료센터 선택");
|
|
|
-// $( "#centerList option[accessKey='"+$('#locationList').val()+"']" ).show();
|
|
|
-// }
|
|
|
-// } else {
|
|
|
-// $( "#centerList option" ).show();
|
|
|
-// $("#centerLabel").text("치료센터 선택");
|
|
|
-// }
|
|
|
-// });
|
|
|
-=======
|
|
|
$( "#centerList option:not([value='0'])" ).appendTo( "#hideList" );
|
|
|
|
|
|
if ($( "#hideList option[accessKey='"+$('#locationList').val()+"']" ).length == 0) {
|
|
@@ -103,12 +87,11 @@ $( function(){
|
|
|
$( "#hideList option[accessKey='"+$('#locationList').val()+"']" ).appendTo( "#centerList" );
|
|
|
}
|
|
|
} else {
|
|
|
- $( "#centerList option:not([value='0'])" ).appendTo( "#hideList" );
|
|
|
+ $( "#centerList option:not([value='0'])" ).appendTo( "#hideList" );
|
|
|
$( "#hideList option" ).appendTo( "#centerList" );
|
|
|
$("#centerLabel").text("치료센터 선택");
|
|
|
}
|
|
|
});
|
|
|
->>>>>>> refs/remotes/origin/databank
|
|
|
});
|
|
|
|
|
|
|
|
@@ -137,17 +120,17 @@ function autoLogin(){
|
|
|
<img src="/resources/images/mobile/login_visual.png" />
|
|
|
</div>
|
|
|
<div class="form">
|
|
|
-<!-- <div class="part"> -->
|
|
|
-<!-- <div class="selectbox"> -->
|
|
|
-<!-- <label for="locationList">전체</label> -->
|
|
|
-<!-- <select id="locationList" name="locationCode"> -->
|
|
|
-<!-- <option value="0" selected>전체</option> -->
|
|
|
-<%-- <c:forEach var="i" items="${locationList}"> --%>
|
|
|
-<%-- <option value="${i.locationCode}"> · <c:out value="${i.locationName}" /></option> --%>
|
|
|
-<%-- </c:forEach> --%>
|
|
|
-<!-- </select> -->
|
|
|
-<!-- </div> -->
|
|
|
-<!-- </div> -->
|
|
|
+ <div class="part">
|
|
|
+ <div class="selectbox">
|
|
|
+ <label for="locationList">전체</label>
|
|
|
+ <select id="locationList" name="locationCode">
|
|
|
+ <option value="0" selected>전체</option>
|
|
|
+ <c:forEach var="i" items="${locationList}">
|
|
|
+ <option value="${i.locationCode}"> · <c:out value="${i.locationName}" /></option>
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="part" id="centerDiv">
|
|
|
<div class="selectbox">
|
|
|
<label for="centerList" id="centerLabel">치료센터 선택</label>
|