Skip to content
Snippets Groups Projects
Commit e0699882 authored by Chad Pilkey's avatar Chad Pilkey
Browse files

add colour notification to caption tab when locale is switched

parent a9acc59b
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
import mx.binding.utils.ChangeWatcher;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.controls.Button;
import mx.events.FlexEvent;
import mx.managers.PopUpManager;
......@@ -161,6 +162,11 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
if (!captionTabs.contains(textTab)) {
addTextTab();
}
var tab:Button = captionTabs.getTabAt(0);
if (tab != null) {
tab.setStyle("fillColors", new Array(0xFFAE00, 0xD3800A));
}
}
private function onTranscriptOwnerIDChange(o:Object):void {
......@@ -194,6 +200,11 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
captionTabs.addChildAt(textTab, 0);
}
private function onTabChange():void {
var tab:Button = captionTabs.getTabAt(captionTabs.selectedIndex);
tab.setStyle("fillColors", new Array(0xFFFFFF, 0xCCCCCC));
}
private function localeChanged(e:Event):void{
resourcesChanged();
}
......@@ -228,6 +239,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<mx:Box width="100%" height="100%" horizontalAlign="left">
<containers:SuperTabNavigator id="captionTabs"
width="100%" height="100%" minTabWidth="20"
dragEnabled="false" popUpButtonPolicy="off" />
dragEnabled="false" popUpButtonPolicy="off"
change="onTabChange()"/>
</mx:Box>
</CustomMdiWindow>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment