You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2015/01/27 18:45:19 UTC
[12/21] incubator-brooklyn git commit: fix JS logic bug in
add-app-from-catalog
fix JS logic bug in add-app-from-catalog
Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/4cad6a4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/4cad6a4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/4cad6a4d
Branch: refs/heads/master
Commit: 4cad6a4d6743cc2bc8ead8977b5d0d8b95cca561
Parents: dfd8d57
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Fri Jan 23 18:30:24 2015 +0000
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Fri Jan 23 18:30:49 2015 +0000
----------------------------------------------------------------------
.../jsgui/src/main/webapp/assets/js/view/application-add-wizard.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/4cad6a4d/usage/jsgui/src/main/webapp/assets/js/view/application-add-wizard.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/webapp/assets/js/view/application-add-wizard.js b/usage/jsgui/src/main/webapp/assets/js/view/application-add-wizard.js
index 84a3151..e45699c 100644
--- a/usage/jsgui/src/main/webapp/assets/js/view/application-add-wizard.js
+++ b/usage/jsgui/src/main/webapp/assets/js/view/application-add-wizard.js
@@ -315,7 +315,7 @@ define([
self.$("#appClassTab .application-type-input").typeahead().data('typeahead').source = self.catalogApplicationIds
$('#catalog-applications-throbber').hide();
$('#catalog-applications-empty').hide();
- if (self.catalogApplicationItems) {
+ if (self.catalogApplicationItems && self.catalogApplicationItems.length > 0) {
self.addTemplateLozenges()
} else {
$('#catalog-applications-empty').show();