mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Clean up some admin scripts
This commit is contained in:
parent
a1e5a51b06
commit
8e85abf97e
2 changed files with 27 additions and 29 deletions
|
|
@ -1,16 +1,17 @@
|
||||||
|
|
||||||
function doCancelDeclare() {
|
function doCancelDeclare() {
|
||||||
var comment_srl = new Array();
|
var comment_srl = new Array();
|
||||||
jQuery('#fo_list input[name="cart[]"]:checked').each(function() {
|
$('#fo_list input[name="cart[]"]:checked').each(function() {
|
||||||
comment_srl[comment_srl.length] = jQuery(this).val();
|
comment_srl.push($(this).val());
|
||||||
});
|
});
|
||||||
|
if (comment_srl.length < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(comment_srl.length<1) return;
|
var params = { comment_srl: comment_srl.join(',') };
|
||||||
|
Rhymix.ajax('comment.procCommentAdminCancelDeclare', params, function() {
|
||||||
var params = new Array();
|
location.reload();
|
||||||
params['comment_srl'] = comment_srl.join(',');
|
});
|
||||||
|
|
||||||
exec_xml('comment','procCommentAdminCancelDeclare', params, function() { location.reload(); });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function insertSelectedModule(id, module_srl, mid, browser_title) {
|
function insertSelectedModule(id, module_srl, mid, browser_title) {
|
||||||
|
|
@ -26,7 +27,7 @@ function getCommentList()
|
||||||
var commentListTable = jQuery('#commentListTable');
|
var commentListTable = jQuery('#commentListTable');
|
||||||
var cartList = [];
|
var cartList = [];
|
||||||
commentListTable.find(':checkbox[name=cart]').each(function(){
|
commentListTable.find(':checkbox[name=cart]').each(function(){
|
||||||
if(this.checked) cartList.push(this.value);
|
if(this.checked) cartList.push(this.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
var params = new Array();
|
var params = new Array();
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,10 @@
|
||||||
* @brief 모든 생성된 섬네일 삭제하는 액션 호출
|
* @brief 모든 생성된 섬네일 삭제하는 액션 호출
|
||||||
**/
|
**/
|
||||||
function doDeleteAllThumbnail() {
|
function doDeleteAllThumbnail() {
|
||||||
exec_xml('document','procDocumentAdminDeleteAllThumbnail', [], completeDeleteAllThumbnail);
|
Rhymix.ajax('document.procDocumentAdminDeleteAllThumbnail', {}, function(ret_obj) {
|
||||||
}
|
alert(ret_obj['message']);
|
||||||
|
location.reload();
|
||||||
function completeDeleteAllThumbnail(ret_obj) {
|
});
|
||||||
alert(ret_obj['message']);
|
|
||||||
location.reload();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 선택된 글의 삭제 또는 이동 */
|
/* 선택된 글의 삭제 또는 이동 */
|
||||||
|
|
@ -28,22 +26,20 @@ function completeManageDocument(ret_obj) {
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 신고 취소 */
|
||||||
function doCancelDeclare() {
|
function doCancelDeclare() {
|
||||||
var document_srl = [];
|
var document_srl = [];
|
||||||
jQuery('#fo_list input[name=cart]:checked').each(function() {
|
$('#fo_list input[name=cart]:checked').each(function() {
|
||||||
document_srl[document_srl.length] = jQuery(this).val();
|
document_srl.push($(this).val());
|
||||||
});
|
});
|
||||||
|
if (document_srl.length < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(document_srl.length<1) return;
|
var params = { document_srl : document_srl.join(',') };
|
||||||
|
Rhymix.ajax('document.procDocumentAdminCancelDeclare', params, function() {
|
||||||
var params = {document_srl : document_srl.join(',')};
|
location.reload();
|
||||||
|
});
|
||||||
exec_xml('document','procDocumentAdminCancelDeclare', params, completeCancelDeclare);
|
|
||||||
}
|
|
||||||
|
|
||||||
function completeCancelDeclare(ret_obj) {
|
|
||||||
location.reload();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeInsertExtraVar(ret_obj) {
|
function completeInsertExtraVar(ret_obj) {
|
||||||
|
|
@ -93,8 +89,9 @@ function moveVar(type, module_srl, var_idx) {
|
||||||
module_srl : module_srl,
|
module_srl : module_srl,
|
||||||
var_idx : var_idx
|
var_idx : var_idx
|
||||||
};
|
};
|
||||||
var response_tags = ['error','message'];
|
Rhymix.ajax('document.procDocumentAdminMoveExtraVar', params, function() {
|
||||||
exec_xml('document','procDocumentAdminMoveExtraVar', params, function() { location.reload() });
|
location.reload();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeRestoreTrash(ret_obj) {
|
function completeRestoreTrash(ret_obj) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue