You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by da...@apache.org on 2015/04/30 17:18:52 UTC
[2/2] stratos git commit: add null handler to application editor UI
add null handler to application editor UI
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/385eadba
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/385eadba
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/385eadba
Branch: refs/heads/master
Commit: 385eadba27ebaa31d89ce3e3bcc1182bdc0a17e6
Parents: 8dea27c
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Thu Apr 30 20:47:31 2015 +0530
Committer: Dakshika Jayathilaka <si...@gmail.com>
Committed: Thu Apr 30 20:47:31 2015 +0530
----------------------------------------------------------------------
.../console/themes/theme0/js/custom/applications-editor.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/385eadba/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
index db44d9e..57d202c 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
@@ -694,7 +694,7 @@ var applicationBlockDefault = {
//create cartridge list
var cartridgeListHtml='';
function generateCartridges(data){
- if(data.length == 0){
+ if(data == null || data.length == 0){
cartridgeListHtml = 'No Cartridges found..';
}else{
for(var cartridge in data){
@@ -715,7 +715,7 @@ function generateCartridges(data){
//create group list
var groupListHtml='';
function generateGroups(data){
- if(data.length == 0){
+ if(data == null || data.length == 0){
groupListHtml = 'No Groups found..';
}else {
for (var group in data) {