|
@@ -5,20 +5,24 @@
|
|
|
pageEncoding="UTF-8"%>
|
|
|
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
|
<script type="text/javascript">
|
|
|
-function reset() {
|
|
|
- var resetCheck = confirm("비밀번호를 초기화 하시겠습니까?");
|
|
|
- if (resetCheck == true) {
|
|
|
- getAjax("/staff/passwordReset", $("#hiddenForm").serialize(), function ( result ) {
|
|
|
- console.log( result );
|
|
|
- if (result === true) {
|
|
|
- alertBox({ txt :'비밀번호가 초기화 되었습니다.' });
|
|
|
+function pwReset() {
|
|
|
+ alertBox({ type : "confirm",
|
|
|
+ txt : "비밀번호를 초기화 하시겠습니까?",
|
|
|
+ callBack : function( result ){
|
|
|
+ if( result ){
|
|
|
+ getAjax("/staff/passwordReset", $("#hiddenForm").serialize(), function ( result ) {
|
|
|
+ console.log( result );
|
|
|
+ if (result === true) {
|
|
|
+ alertBox({ txt :'비밀번호가 초기화 되었습니다.' });
|
|
|
+ }
|
|
|
+ }, function(){
|
|
|
+ alertBox({ txt : '비밀번호가 초기화에 실패하였습니다.' });
|
|
|
+ }, function(){
|
|
|
+
|
|
|
+ });
|
|
|
}
|
|
|
- }, function(){
|
|
|
- alertBox({ txt : '비밀번호가 초기화에 실패하였습니다.' });
|
|
|
- }, function(){
|
|
|
-
|
|
|
- });
|
|
|
- }
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
function deleteConfirm(){
|
|
|
alertBox({ type : "confirm",
|
|
@@ -166,10 +170,10 @@ function deleteConfirm(){
|
|
|
</c:if>
|
|
|
|
|
|
<c:if test="${data._SES_GROUP_IDX ne '1'}">
|
|
|
- <button class="btn btn-warning w150" onclick="reset();">비밀번호 초기화</button>
|
|
|
+ <button type="button" class="btn btn-warning w150" onclick="pwReset();">비밀번호 초기화</button>
|
|
|
</c:if>
|
|
|
</c:if>
|
|
|
- <button class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
|
|
|
+ <button type="button" class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|