01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <aui:script> function <portlet:namespace/>orgHTMsgMenu2_RecStatus(event) { //alert(event.rec_id); //alert(event.rec_status); var recId = event.rec_id; var rec_status = event.rec_status; var hrFlag = '<%=isHR%>' ; AUI().use( 'aui-io-request' , function (A) { var myAjaxRequest=A.io.request( '<%=ajaxURL%>' ,{ dataType: 'json' , method: 'POST' , data:{ <portlet:namespace/>recId: recId, <portlet:namespace/>status: rec_status, <portlet:namespace/>hrFlag: hrFlag, <portlet:namespace/>cmd: 'getUser' }, autoLoad: false , sync: false , on: { success: function (){ var data= this .get( 'responseData' ); alert(data == null ); Liferay.fire( 'changeHTMsgStatusMenu1_RecStatus' , { rec_status : event.rec_status }); }} }); myAjaxRequest.start(); }); } </aui:script> |