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/master to 9f18b07
Date Mon, 27 Jan 2014 21:33:16 GMT
Updated Branches:
  refs/heads/master f77974b5d -> 9f18b075a


List view: Fix advanced search not popping up with multiple panels


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

Branch: refs/heads/master
Commit: 9f18b075a9de166dfee222ae1ef68f0e81af8247
Parents: f77974b
Author: Brian Federle <brian.federle@citrix.com>
Authored: Mon Jan 27 13:30:37 2014 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Mon Jan 27 13:33:12 2014 -0800

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9f18b075/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index d94744d..cb4544c 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -877,7 +877,7 @@
                 $('<div>').attr({
                     id: 'advanced_search'
                 })
-                .addClass('button search')
+                .addClass('button search advanced-search')
                 .append($('<div>').addClass('icon'))
             );
         }
@@ -1872,11 +1872,11 @@
         };
 
         var closeAdvancedSearch = function() {
-            $('#advanced_search .form-container:visible').remove();
+            $listView.find('.advanced-search .form-container:visible').remove();
         };
 
-        $listView.find('.button.search#advanced_search .icon').bind('click', function(event)
{
-            if ($('#advanced_search .form-container:visible').size()) {
+        $listView.find('.advanced-search .icon').bind('click', function(event) {
+            if ($listView.find('.advanced-search .form-container:visible').size()) {
                 closeAdvancedSearch();
 
                 return false;
@@ -1897,7 +1897,7 @@
             var $formContainer = form.$formContainer;
             var $form = $formContainer.find('form');
 
-            $formContainer.hide().appendTo('#advanced_search').show();
+            $formContainer.hide().appendTo($listView.find('.advanced-search')).show();
             $form.find('.form-item:first input').focus();
             $form.find('input[type=submit]')
                 .show()


Mime
View raw message