Copy
function enduserAddPopup() {
$('#modal-enduser-add').modal({
context : '.tab-content',
blurring : true
}).modal('show');
}
위와 같은 형태를
Copy
function enduserAddPopup() {
$('#modal-enduser-add').modalShow();
}
이 처럼 modalShow(); 이라는 함수에 정의를 해놓고
관리를 하고 싶습니다.. 즉..
modalShow(); 이라는 함수에
modal({ context : '.tab-content', blurring : true }).modal('show');
라는 내용을 넣고 싶은데 잘안되네요..어떻게 해야할까요?..
|
답변 1개
채택된 답변
+20 포인트
2019-11-19 (화) 01:27:40
$.fn.modalShow() = function () {
$(this).modal({ context : '.tab-content', blurring : true }).modal('show');
}
답변을 작성하려면 로그인이 필요합니다.