$(document).ready(function(){
$(".load_page").click(function(event){
event.preventDefault();
$( "#iframe .modal-dialog" ).remove();
$.get($(this).attr('href'), function(data) {
$('#iframe').append(data);
});
//$('#iframe').load( $(this).attr('href') );
});
$(".load_action").click(function(event){
event.preventDefault();
$.ajax({
url: $(this).attr('href')
}).done(function( data ) {
if(data=="true") {
$( "#iframe .modal-dialog" ).remove();
var list = '
Notice: Undefined index: directory in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 24
/
Notice: Undefined index: class in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 24
/index
Notice: Undefined index: params in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 24
';
$.get(list, function(data) {
$('#iframe').append(data);
});
}
}).fail(function( jqXHR, textStatus ) {
alert( "Request failed: " + textStatus );
});
});
$('.load_delete').click(function(event){
event.preventDefault();
if(confirm('삭제 하시겠습니까?'))
{
$.ajax({
url: $(this).attr('href')
}).done(function( data ) {
if(data=="true") {
$( "#iframe .modal-dialog" ).remove();
var list = '
Notice: Undefined index: directory in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 46
/
Notice: Undefined index: class in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 46
/index
Notice: Undefined index: params in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 46
';
$.get(list, function(data) {
$('#iframe').append(data);
});
}
}).fail(function( jqXHR, textStatus ) {
alert( "Request failed: " + textStatus );
});
}
});
$(".popup_delete").click(function(event){
event.preventDefault();
if(confirm('삭제 하시겠습니까?'))
{
document.location.replace($(this).attr('href'));
}
return false;
});
/*알반 시작*/
$('.write_form').submit(function(event){
event.preventDefault();
if(doPopupWrite($(this)))
{
var parameter = $(this).serialize();
$.ajax({
type: "POST",
data: parameter,
url: $(this).attr('action')
}).done(function( data ) {
if(data=="true") {
$( "#iframe .modal-dialog" ).remove();
var list = '
Notice: Undefined index: directory in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 83
/
Notice: Undefined index: class in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 83
/index
Notice: Undefined index: params in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 83
';
$.get(list, function(data) {
$('#iframe').append(data);
});
}
}).fail(function( jqXHR, textStatus ) {
alert( "Request failed: " + textStatus );
});
}
});
$('.edit_form').submit(function(event){
event.preventDefault();
if(doPopupEdit($(this)))
{
var parameter = $(this).serialize();
$.ajax({
type: "POST",
data: parameter,
url: $(this).attr('action')
}).done(function( data ) {
if(data=="true") {
$( "#iframe .modal-dialog" ).remove();
var list = '
Notice: Undefined index: directory in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 108
/
Notice: Undefined index: class in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 108
/index
Notice: Undefined index: params in /home/seeders/public_html/assets/common/js/wezon_modal.php on line 108
';
$.get(list, function(data) {
$('#iframe').append(data);
});
}
}).fail(function( jqXHR, textStatus ) {
alert( "Request failed: " + textStatus );
});
}
});
$('.form').submit(function(event){
event.preventDefault();
if(doPopupSubmit($(this)))
{
var parameter = $(this).serialize();
$.ajax({
type: "POST",
data: parameter,
url: $(this).attr('action')
}).done(function( data ) {
if(data=="true") {
document.location.reload();
}
}).fail(function( jqXHR, textStatus ) {
alert( "Request failed: " + textStatus );
});
}
});
$('.search_form').submit(function(event){
event.preventDefault();
var parameter = $(this).serialize();
$.ajax({
type: "GET",
data: parameter,
url: $(this).attr('action')
}).done(function( data ) {
$( "#iframe .modal-dialog" ).remove();
$('#iframe').append(data);
}).fail(function( jqXHR, textStatus ) {
alert( "Request failed: " + textStatus );
});
});
/*알반 끝*/
//툴팁
$('[data-toggle="tooltip"]').tooltip({'placement':'top'});
$('[data-toggle="tooltip"]').tooltip('toggle');
$('[data-toggle="tooltip"]').tooltip('hide');
});