improved the help URL loading

This commit is contained in:
Chad Pilkey 2017-10-09 12:10:17 -07:00
parent 98e00a8056
commit a88c684abc
4 changed files with 6 additions and 11 deletions

View File

@ -22,7 +22,7 @@ package org.bigbluebutton.main.model.options {
public class HelpOptions extends Options {
[Bindable]
public var url:String = "";
public var url:String = "http://www.bigbluebutton.org/content/videos";
public function HelpOptions() {
name = "help";

View File

@ -291,12 +291,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
mic.gain = currentSlider.value
}
private var DEFAULT_HELP_URL:String = "http://www.bigbluebutton.org/content/videos";
private function onHelpButtonClicked():void {
var helpOptions : HelpOptions = Options.getOptions(HelpOptions) as HelpOptions;
DEFAULT_HELP_URL = helpOptions.url;
navigateToURL(new URLRequest(DEFAULT_HELP_URL));
navigateToURL(new URLRequest(helpOptions.url));
}
private function yesButtonClicked():void {

View File

@ -89,6 +89,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
import org.bigbluebutton.main.events.SuccessfulLoginEvent;
import org.bigbluebutton.main.model.NetworkStatsData;
import org.bigbluebutton.main.model.options.BrandingOptions;
import org.bigbluebutton.main.model.options.HelpOptions;
import org.bigbluebutton.main.model.options.LayoutOptions;
import org.bigbluebutton.main.model.options.ShortcutKeysOptions;
import org.bigbluebutton.main.model.users.events.ChangeMyRole;
@ -99,8 +100,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private static const LOGGER:ILogger = getClassLogger(MainToolbar);
private var DEFAULT_HELP_URL:String = "http://www.bigbluebutton.org/content/videos";
public static const ALIGN_RIGHT:String ="ALIGN_RIGHT";
public static const ALIGN_LEFT:String = "ALIGN_LEFT";
@ -289,7 +288,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
private function onHelpButtonClicked():void {
navigateToURL(new URLRequest(DEFAULT_HELP_URL))
var helpOptions:HelpOptions = Options.getOptions(HelpOptions) as HelpOptions;
navigateToURL(new URLRequest(helpOptions.url));
}
private function handleEndMeetingEvent(event:BBBEvent):void {

View File

@ -58,7 +58,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
import org.bigbluebutton.util.i18n.ResourceUtil;
private static const LOGGER:ILogger = getClassLogger(WebRTCEchoTest);
private static var DEFAULT_HELP_URL:String = "http://www.bigbluebutton.org/content/videos";
private static const TIMEOUT:Number = 60;
private static const CANCEL_BUTTON:Number = 55;
@ -243,8 +242,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function onHelpButtonClicked():void {
var helpOptions : HelpOptions = Options.getOptions(HelpOptions) as HelpOptions;
DEFAULT_HELP_URL = helpOptions.url;
navigateToURL(new URLRequest(DEFAULT_HELP_URL));
navigateToURL(new URLRequest(helpOptions.url));
}