brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [12/21] incubator-brooklyn git commit: fix JS logic bug in add-app-from-catalog
Date Tue, 27 Jan 2015 17:45:19 GMT
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 <alex.heneveld@cloudsoftcorp.com>
Authored: Fri Jan 23 18:30:24 2015 +0000
Committer: Alex Heneveld <alex.heneveld@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();


Mime
View raw message