mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
issue 425: Fixed a bug when admin calls doCallModuleAction() javascript function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9528 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d09ce9b95c
commit
2c585c32c0
3 changed files with 11 additions and 7 deletions
|
|
@ -471,9 +471,11 @@ function setFixedPopupSize() {
|
|||
* @brief 추천/비추천,스크랩,신고기능등 특정 srl에 대한 특정 module/action을 호출하는 함수
|
||||
**/
|
||||
function doCallModuleAction(module, action, target_srl) {
|
||||
var params = new Array();
|
||||
params['target_srl'] = target_srl;
|
||||
params['cur_mid'] = current_mid;
|
||||
var params = {
|
||||
target_srl : target_srl,
|
||||
cur_mid : current_mid,
|
||||
mid : current_mid
|
||||
};
|
||||
exec_xml(module, action, params, completeCallModuleAction);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -755,9 +755,11 @@ function setFixedPopupSize() {
|
|||
* @brief 추천/비추천,스크랩,신고기능등 특정 srl에 대한 특정 module/action을 호출하는 함수
|
||||
**/
|
||||
function doCallModuleAction(module, action, target_srl) {
|
||||
var params = new Array();
|
||||
params['target_srl'] = target_srl;
|
||||
params['cur_mid'] = current_mid;
|
||||
var params = {
|
||||
target_srl : target_srl,
|
||||
cur_mid : current_mid,
|
||||
mid : current_mid
|
||||
};
|
||||
exec_xml(module, action, params, completeCallModuleAction);
|
||||
}
|
||||
|
||||
|
|
|
|||
2
common/js/xe.min.js
vendored
2
common/js/xe.min.js
vendored
|
|
@ -26,7 +26,7 @@ e+'" width="'+b+'" height="'+d+'" flashvars="&file='+a+"&width="+b+"&height="+d+
|
|||
'">';g+='<param name="movie" value="'+a+'" />';for(var j in c)c[j]!="undefined"&&c[j]!=""&&(g+='<param name="'+j+'" value="'+c[j]+'" />');g+='<embed src="'+a+'" autostart="'+e+'" width="'+b+'" height="'+d+'" flashvars="'+c.flashvars+'" wmode="'+c.wmode+'"></embed></object>'}else{if(jQuery.browser.mozilla||jQuery.browser.opera)e=c.autostart&&c.autostart!="false"?"1":"0";g='<embed src="'+a+'" autostart="'+e+'" width="'+b+'" height="'+d+'"';c.wmode=="transparent"&&(g+=' windowlessvideo="1"');g+="></embed>"}return g}
|
||||
function zbxe_folder_open(a){jQuery("#folder_open_"+a).hide();jQuery("#folder_close_"+a).show();jQuery("#folder_"+a).show()}function zbxe_folder_close(a){jQuery("#folder_open_"+a).show();jQuery("#folder_close_"+a).hide();jQuery("#folder_"+a).hide()}
|
||||
function setFixedPopupSize(){var a=jQuery,b=a(window),a=a("body>.popup"),d,c,e,g;g=a.css({overflow:"scroll"}).offset();d=a.width(10).height(1E4).get(0).scrollWidth+g.left*2;c=a.height(10).width(1E4).get(0).scrollHeight+g.top*2;d<600&&(d=600+g.left*2);e=b.width();b=b.height();d!=e&&window.resizeBy(d-e,0);c!=b&&window.resizeBy(0,c-b);a.width(d-g.left*2).css({overflow:"",height:""})}
|
||||
function doCallModuleAction(a,b,d){var c=[];c.target_srl=d;c.cur_mid=current_mid;exec_xml(a,b,c,completeCallModuleAction)}function completeCallModuleAction(a){a.message!="success"&&alert(a.message);location.reload()}function completeMessage(a){alert(a.message);location.reload()}function doChangeLangType(a){typeof a=="string"?setLangType(a):setLangType(a.options[a.selectedIndex].value);location.href=location.href.setQuery("l","")}
|
||||
function doCallModuleAction(a,b,d){exec_xml(a,b,{target_srl:d,cur_mid:current_mid,mid:current_mid},completeCallModuleAction)}function completeCallModuleAction(a){a.message!="success"&&alert(a.message);location.reload()}function completeMessage(a){alert(a.message);location.reload()}function doChangeLangType(a){typeof a=="string"?setLangType(a):setLangType(a.options[a.selectedIndex].value);location.href=location.href.setQuery("l","")}
|
||||
function setLangType(a){var b=new Date;b.setTime(b.getTime()+6048E8);setCookie("lang_type",a,b,"/")}
|
||||
function doDocumentPreview(a){for(;a.nodeName!="FORM";)a=a.parentNode;if(a.nodeName=="FORM"){a=a.getAttribute("editor_sequence");a=editorGetContent(a);window.open("","previewDocument","toolbars=no,width=700px;height=800px,scrollbars=yes,resizable=yes");var b=jQuery("#previewDocument");b.length||(jQuery('<form id="previewDocument" target="previewDocument" method="post" action="'+request_uri+'"><input type="hidden" name="module" value="document" /><input type="hidden" name="act" value="dispDocumentPreview" /><input type="hidden" name="content" /></form>').appendTo(document.body),b=
|
||||
jQuery("#previewDocument")[0]);if(b)b.content.value=a,b.submit()}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue