cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [1/3] git commit: listView UI: Fix case where $breadcrumb isn't present
Date Wed, 01 Aug 2012 22:58:00 GMT
Updated Branches:
  refs/heads/master 88b317f7f -> 8120785ba
  refs/heads/vpc 96ac18d8e -> babc868de


listView UI: Fix case where $breadcrumb isn't present


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/babc868d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/babc868d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/babc868d

Branch: refs/heads/vpc
Commit: babc868de6912c4d1b75b06538a075c5a3bb4d93
Parents: 640dcde
Author: Brian Federle <brian.federle@citrix.com>
Authored: Wed Aug 1 15:53:44 2012 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Wed Aug 1 15:57:28 2012 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/babc868d/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index be2f106..0a1d093 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -1122,12 +1122,15 @@
       var subsectionTitle = _l(args.sections[section].title);
 
       // Show subsection in breadcrumb
-      if ((sectionTitle && subsectionTitle) && (sectionTitle != subsectionTitle))
{
-        args.$breadcrumb.find('span.subsection').html(' - ' + subsectionTitle);
-        args.$breadcrumb.attr('title', sectionTitle + ' - ' + subsectionTitle);
-      } else {
-        args.$breadcrumb.find('span.subsection').html('');
-        args.$breadcrumb.attr('title', sectionTitle);
+      if (args.$breadcrumb) {
+        if ((sectionTitle && subsectionTitle) &&
+            (sectionTitle != subsectionTitle)) {
+          args.$breadcrumb.find('span.subsection').html(' - ' + subsectionTitle);
+          args.$breadcrumb.attr('title', sectionTitle + ' - ' + subsectionTitle);
+        } else {
+          args.$breadcrumb.find('span.subsection').html('');
+          args.$breadcrumb.attr('title', sectionTitle);
+        } 
       }
     }
 


Mime
View raw message