diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/CommandLaunchNomadLink.as b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/CommandLaunchNomadLink.as
index 57ec71f..d9b46ca 100644
--- a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/CommandLaunchNomadLink.as
+++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/CommandLaunchNomadLink.as
@@ -1,42 +1,20 @@
package controller
{
- import model.proxy.login.ProxyLogin;
+ import mediator.MediatorMainContentView;
+ import org.apache.royale.html.elements.Iframe;
import org.puremvc.as3.multicore.interfaces.INotification;
import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
- import org.apache.royale.utils.js.loadJavascript;
- import org.apache.royale.net.HTTPService;
- import org.apache.royale.net.beads.CORSCredentialsBead;
- import org.apache.royale.net.events.FaultEvent;
- import org.apache.royale.net.HTTPHeader;
- import mediator.MediatorMainContentView;
- import org.apache.royale.jewel.Group;
- import org.apache.royale.core.IChild;
public class CommandLaunchNomadLink extends SimpleCommand
{
override public function execute(note:INotification):void
{
var mainMediator:MediatorMainContentView = facade.retrieveMediator(MediatorMainContentView.NAME) as MediatorMainContentView;
-
- var nomadHelper:Group = mainMediator.view.viewNomadHelper as Group;
-
- if (nomadHelper.numElements > 0)
- {
- for (var i:int = nomadHelper.numElements - 1; i >= 0; i--)
- {
- var element:IChild = nomadHelper.getElementAt(i);
- nomadHelper.removeElement(element);
- }
- }
-
- var nomadHelperContent:Group = new Group();
- nomadHelper.addElement(nomadHelperContent);
-
+ var nomadHelper:Iframe = mainMediator.view.viewNomadHelper as Iframe;
var link:String = String(note.getBody());
- window["$"](nomadHelperContent.element).load("https://nomadweb.venus.startcloud.com/nomad/nomadhelper.html?link='"+link+"'", function(responseText:String, textStatus:String, jqXHR:Object):void {
- var status:String = textStatus;
- });
+ var encodedLink:String = encodeURIComponent(link);
+ nomadHelper.src = "https://nomadweb.venus.startcloud.com/nomad/nomadhelper.html?link=" + encodedLink;
}
}
}
\ No newline at end of file
diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBrowseMyServer.as b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBrowseMyServer.as
index 0831fee..8d08fec 100644
--- a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBrowseMyServer.as
+++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/mediator/bookmarks/MediatorBrowseMyServer.as
@@ -160,6 +160,8 @@ package mediator.bookmarks
private function onOpenNomadWeb(event:MouseEvent):void
{
+ event.preventDefault();
+
sendNotification(ApplicationConstants.COMMAND_LAUNCH_NOMAD_LINK, view.selectedItem.nomadURL);
}
@@ -174,6 +176,7 @@ package mediator.bookmarks
private function refreshButtonLinks():void
{
+
if (view.selectedItem)
{
view.openClient.html = "Open in Client";
diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/view/MainContent.mxml b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/view/MainContent.mxml
index fcb1a0c..a445938 100644
--- a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/view/MainContent.mxml
+++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/view/MainContent.mxml
@@ -455,5 +455,5 @@