incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [3/3] git commit: listView UI: Fix case where $breadcrumb isn't present
Date Wed, 01 Aug 2012 22:58:00 GMT
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/8120785b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8120785b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8120785b

Branch: refs/heads/master
Commit: 8120785babceab089384519a617c3c06cdb2fcca
Parents: 88b317f
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:00 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/8120785b/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 2136d5c..9497a8d 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