Index: lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/LessonTabView.as =================================================================== diff -u -re22f31ec5b96ec9a0e1ac8490d9a46530cf4be90 -rb202b78d9de322413da016d90295ef8a8e16a6c8 --- lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/LessonTabView.as (.../LessonTabView.as) (revision e22f31ec5b96ec9a0e1ac8490d9a46530cf4be90) +++ lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/LessonTabView.as (.../LessonTabView.as) (revision b202b78d9de322413da016d90295ef8a8e16a6c8) @@ -82,7 +82,7 @@ private var manageStatus_lbl:Label; private var manageStart_lbl:Label; private var manageDate_lbl:Label; - + private var btnLabel:String; //Text Items private var LSTitle_txt:TextField; @@ -136,7 +136,7 @@ */ public function init(m:Observable,c:Controller){ super (m, c); - + btnLabel = Dictionary.getValue('td_goContribute_btn'); MovieClipUtils.doLater(Proxy.create(this,setupTab)); } @@ -488,11 +488,11 @@ if(o instanceof ContributeActivity){ // normal CA entries trace('write out entry with GO link'+o.taskURL); - requiredTaskList[listCount] =_monitorReqTask_mc.attachMovie("contributeEntryRow", "contributeEntryRow"+listCount, this._monitorReqTask_mc.getNextHighestDepth(), {_x:x, _y:19*listCount}) + requiredTaskList[listCount] =_monitorReqTask_mc.attachMovie("contributeEntryRow", "contributeEntryRow"+listCount, this._monitorReqTask_mc.getNextHighestDepth(), {_x:x, _y:19*listCount, buttonLabel:btnLabel}) reqTasks_scp.redraw(true); requiredTaskList[listCount].contributeEntry.text = "\t\t"+mm.getMonitor().getCELiteral(o._contributionType); requiredTaskList[listCount].goContribute._x = reqTasks_scp._width-50 - requiredTaskList[listCount].goContribute.label = Dictionary.getValue('td_goContribute_btn'); + //requiredTaskList[listCount].goContribute.label = Dictionary.getValue('td_goContribute_btn'); requiredTaskList[listCount].goContribute.onRelease = function (){ trace("Contribute Type is: "+o.taskURL); JsPopup.getInstance().launchPopupWindow(o.taskURL, 'ContributeActivity', 398, 570, true, true, false, false, false); Index: lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/TodoTabView.as =================================================================== diff -u -re22f31ec5b96ec9a0e1ac8490d9a46530cf4be90 -rb202b78d9de322413da016d90295ef8a8e16a6c8 --- lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/TodoTabView.as (.../TodoTabView.as) (revision e22f31ec5b96ec9a0e1ac8490d9a46530cf4be90) +++ lams_central/src/flash/org/lamsfoundation/lams/monitoring/mv/tabviews/TodoTabView.as (.../TodoTabView.as) (revision b202b78d9de322413da016d90295ef8a8e16a6c8) @@ -47,13 +47,15 @@ //constants: private var _tm:ThemeManager; private var mm:MonitorModel; + private var _dictionary:Dictionary; //TabView clips private var YPOS:Number = 70; private var listCount:Number = 0; private var todoTaskList:Array = new Array(); private var _monitorTodoTask_mc:MovieClip; - + private var goContribute:Button; + private var btnLabel:String; // Background private var bkg_pnl:MovieClip; @@ -78,15 +80,17 @@ _monitorTodoTask_mc = this; this._visible = false; _tm = ThemeManager.getInstance(); - //Init for event delegation + //Init for event delegation + _dictionary = Dictionary.getInstance(); mx.events.EventDispatcher.initialize(this); } /** * Called to initialise Canvas . CAlled by the Canvas container */ public function init(m:Observable,c:Controller){ - super (m, c); + super (m, c); + btnLabel = Dictionary.getValue('td_goContribute_btn'); } /** @@ -246,10 +250,11 @@ if(o instanceof ContributeActivity){ // normal CA entries trace('write out entry with GO link'+o.taskURL); - todoTaskList[listCount] =_monitorTodoTask_mc.attachMovie("contributeEntryRow", "contributeEntryRow"+listCount, this._monitorTodoTask_mc.getNextHighestDepth(), {_x:x, _y:YPOS+(19*listCount)}) + trace('button label is: '+btnLabel); + todoTaskList[listCount] =_monitorTodoTask_mc.attachMovie("contributeEntryRow", "contributeEntryRow"+listCount, this._monitorTodoTask_mc.getNextHighestDepth(), {_x:x, _y:YPOS+(19*listCount), buttonLabel:btnLabel}) todoTaskList[listCount].contributeEntry.text = "\t\t"+mm.getMonitor().getCELiteral(o._contributionType); todoTaskList[listCount].goContribute._x = this._width-50; - todoTaskList[listCount].goContribute.label = Dictionary.getValue('td_goContribute_btn'); + //todoTaskList[listCount].goContribute.label = todoTaskList[listCount].goContribute.onRelease = function (){ trace("Contrybute Type is: "+o.taskURL); JsPopup.getInstance().launchPopupWindow(o.taskURL, 'ContributeActivity', 398, 570, true, true, false, false, false);