Index: lams_common/src/flash/org/lamsfoundation/lams/common/ui/LFMessage.as =================================================================== diff -u -r13a1b128cb1228e0d4e08421ded0ff0f0994fbd5 -r5eebe05c2dc6024edeac654a62092c033dbacc20 --- lams_common/src/flash/org/lamsfoundation/lams/common/ui/LFMessage.as (.../LFMessage.as) (revision 13a1b128cb1228e0d4e08421ded0ff0f0994fbd5) +++ lams_common/src/flash/org/lamsfoundation/lams/common/ui/LFMessage.as (.../LFMessage.as) (revision 5eebe05c2dc6024edeac654a62092c033dbacc20) @@ -54,7 +54,7 @@ * @param handler A handler for the click events broadcast when the buttons are clicked. In addition to the standard click event object properties, there is an additional detail property, which contains the flag value of the button that was clicked (Alert.OK, Alert.CANCEL, Alert.YES, Alert.NO). This handler can be a function or an object * @return */ - public static function showMessageConfirm(msg, okHandler:Function, cancelHandler:Function){ + public static function showMessageConfirm(msg, okHandler:Function, cancelHandler:Function,okLabel:String,cancelLabel:String){ var alt:Alert; var handlerObj = new Object(); handlerObj.click = function(e){ @@ -66,9 +66,20 @@ Debugger.log('Unknown event detail form confirm:'+e.detail,Debugger.CRITICAL,"showMessageConfirm",'LFMessage'); } } + if(okLabel){ + Alert.okLabel = okLabel; + }else{ + Alert.okLabel = Dictionary.getValue('al_ok'); + } + if(cancelLabel){ + Alert.cancelLabel= cancelLabel; + }else{ + Alert.cancelLabel= Dictionary.getValue('al_cancel'); + } alt = Alert.show(msg,"__Confirm__",Alert.OK | Alert.CANCEL, null, handlerObj, null, Alert.OK); } + public function get reference():Object{ return _ref; }