cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/ui-vpc-redesign to 451c83c
Date Tue, 21 May 2013 19:53:02 GMT
Updated Branches:
  refs/heads/ui-vpc-redesign e35f14439 -> 451c83c99


Fix listView add/replace row for VPC section


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

Branch: refs/heads/ui-vpc-redesign
Commit: 451c83c998a96f908a04d3329e1dc695c64849e8
Parents: e35f144
Author: Brian Federle <bfederle@gmail.com>
Authored: Tue May 21 12:52:55 2013 -0700
Committer: Brian Federle <bfederle@gmail.com>
Committed: Tue May 21 12:52:55 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/451c83c9/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 0d5ef6fc..031874d 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -1873,7 +1873,7 @@
     if (!options) options = {};
 
     var viewArgs = listView.data('view-args');
-    var listViewArgs = viewArgs.listView ? viewArgs.listView : viewArgs;
+    var listViewArgs = $.isPlainObject(viewArgs.listView) ? viewArgs.listView : viewArgs;
     var targetArgs = listViewArgs.activeSection ? listViewArgs.sections[
       listViewArgs.activeSection
     ].listView : listViewArgs;
@@ -1903,7 +1903,7 @@
     var $newRow;
     var $listView = $row.closest('.list-view');
     var viewArgs = $listView.data('view-args');
-    var listViewArgs = viewArgs.listView ? viewArgs.listView : viewArgs;
+    var listViewArgs = $.isPlainObject(viewArgs.listView) ? viewArgs.listView : viewArgs;
     var targetArgs = listViewArgs.activeSection ? listViewArgs.sections[
       listViewArgs.activeSection
     ].listView : listViewArgs;


Mime
View raw message