마지막 남은 iframe 안녕!!!
This commit is contained in:
+61
-8
@@ -28,7 +28,7 @@ function refreshing(obj, arg1, arg2) {
|
||||
switch(arg1) {
|
||||
case 0: document.location.reload(); break;
|
||||
case 2: turn(arg2); break;
|
||||
case 3: arg2.submit(); break;
|
||||
case 3: $(arg2).submit(); break;
|
||||
case 4:
|
||||
arg2.submit();
|
||||
message.msg.value = "";
|
||||
@@ -39,14 +39,38 @@ function refreshing(obj, arg1, arg2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function moveProcessing(commandtype, turn){
|
||||
console.log(commandtype, turn);
|
||||
$.redirect("processing.php",{ commandtype: commandtype, turn: turn}, 'post');
|
||||
function turn(type) {
|
||||
$.post({
|
||||
url:'j_turn.php',
|
||||
dataType:'json',
|
||||
data:{
|
||||
type:type,
|
||||
sel:form2.sel.value
|
||||
}
|
||||
}).then(function(data){
|
||||
if(!data.result){
|
||||
alert(data.reason);
|
||||
}
|
||||
reloadCommandList();
|
||||
});
|
||||
}
|
||||
|
||||
function turn(type) {
|
||||
num = form2.sel.value;
|
||||
commandlist.location.replace('turn.php?type=' + type + '&sel=' + num);
|
||||
function reloadCommandList(){
|
||||
$.get({
|
||||
url:'commandlist.php',
|
||||
cache: false,
|
||||
}).then(function(rdata){
|
||||
$('#commandlist').html(rdata);
|
||||
});
|
||||
}
|
||||
|
||||
function myclock() {
|
||||
|
||||
$('#clock').val(moment().tz('Asia/Seoul').format('YYYY-MM-DD HH:mm:ss'));
|
||||
|
||||
window.setTimeout(function(){
|
||||
myclock();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
jQuery(function($){
|
||||
@@ -54,11 +78,40 @@ jQuery(function($){
|
||||
var $this = $(this);
|
||||
var target = $('[name="genlist"]').val();
|
||||
var msg = $('#msg').val();
|
||||
console.log(target, msg);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#mainBtnSubmit').click(function(){
|
||||
|
||||
});
|
||||
|
||||
$('#form2').submit(function(){
|
||||
var values = $(this).serializeArray();
|
||||
console.log(values);
|
||||
$.post({
|
||||
url:'j_preprocessing.php',
|
||||
dataType:'json',
|
||||
data:values
|
||||
}).then(function(data){
|
||||
if(!data.result){
|
||||
alert(data.reason);
|
||||
reloadCommandList();
|
||||
return;
|
||||
}
|
||||
|
||||
if(!data.nextPage){
|
||||
reloadCommandList();
|
||||
return;
|
||||
}
|
||||
|
||||
document.location = data.nextPage;
|
||||
return;
|
||||
}, function(){
|
||||
alert('알 수 없는 에러');
|
||||
location.reload();
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
myclock();
|
||||
});
|
||||
Reference in New Issue
Block a user