You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by re...@apache.org on 2015/04/10 12:55:03 UTC
stratos git commit: Fixing the UI topology view
Repository: stratos
Updated Branches:
refs/heads/master ca9860bae -> 97c1b5e6a
Fixing the UI topology view
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/97c1b5e6
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/97c1b5e6
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/97c1b5e6
Branch: refs/heads/master
Commit: 97c1b5e6a9dde861c9ec9feb7326b1500e068d28
Parents: ca9860b
Author: anuruddhal <an...@gmail.com>
Authored: Fri Apr 10 16:10:32 2015 +0530
Committer: anuruddhal <an...@gmail.com>
Committed: Fri Apr 10 16:10:32 2015 +0530
----------------------------------------------------------------------
.../console/themes/theme0/js/custom/applications_topology.js | 2 +-
.../console/themes/theme0/partials/applications_topology.hbs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/97c1b5e6/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js
index 6b1bf54..d5d3944 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js
@@ -190,7 +190,7 @@ function update(source) {
"<strong>Status: </strong>" + d.status;
} else if (d.type == 'members') {
- if((d.ports != '') && (d.ports.length > 0)) {
+ if((typeof d.ports != 'undefined') && (d.ports.length > 0)) {
var portsHTML = "<strong>Ports: </strong></br>";
for(var i=0;i<d.ports.length;i++){
portsHTML += "Port: " + d.ports[i].port + ", Protocol: " + d.ports[i].protocol;
http://git-wip-us.apache.org/repos/asf/stratos/blob/97c1b5e6/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_topology.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_topology.hbs b/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_topology.hbs
index 249bef8..496d814 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_topology.hbs
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_topology.hbs
@@ -62,7 +62,7 @@
<script type="text/javascript">
var topologydata = {{{topologyData}}};
var applicationJSON = {{{applicationJSON}}};
-$(document).ready(function () {
+$(window).load(function() {
//initial generation with deafult call
update(genTree(topologydata));