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