You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2014/01/06 19:41:56 UTC

git commit: updated refs/heads/4.2 to 55a38ee

Updated Branches:
  refs/heads/4.2 79f609ca1 -> 55a38ee8f


CLOUDSTACK-5771: UI > Infrastructure > SystemVMs/PrimaryStorage/SecondaryStorage/Pod/Cluster/Hosts/CacheStorage page - pass keyword parameter instead of name parameter to listXXXXXXX API.


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

Branch: refs/heads/4.2
Commit: 55a38ee8ff0caa34a5b03ec9a189adbec4c58fd5
Parents: 79f609c
Author: Jessica Wang <je...@apache.org>
Authored: Fri Jan 3 14:23:44 2014 -0800
Committer: Jessica Wang <je...@apache.org>
Committed: Mon Jan 6 10:41:46 2014 -0800

----------------------------------------------------------------------
 ui/scripts/system.js | 107 ++++++++++++++++------------------------------
 1 file changed, 37 insertions(+), 70 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/55a38ee8/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index f632887..a999966 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -6689,17 +6689,13 @@
                         },
                         pods: function() {
                             var listView = $.extend(true, {}, cloudStack.sections.system.subsections.pods.listView, {
-                                dataProvider: function(args) {
-                                    var searchByArgs = args.filterBy.search.value.length ?
-                                        '&name=' + args.filterBy.search.value : '';
-
+                                dataProvider: function(args) {                                	
+                                    var data = {};
+                                    listViewDataProvider(args, data);
+                                                                   	
                                     $.ajax({
-                                        url: createURL('listPods' + searchByArgs),
-                                        data: {
-                                            page: args.page,
-                                            pageSize: pageSize,
-                                            listAll: true
-                                        },
+                                        url: createURL('listPods'),
+                                        data: data,
                                         success: function(json) {
                                             args.response.success({
                                                 data: json.listpodsresponse.pod
@@ -6739,17 +6735,13 @@
                         },
                         clusters: function() {
                             var listView = $.extend(true, {}, cloudStack.sections.system.subsections.clusters.listView, {
-                                dataProvider: function(args) {
-                                    var searchByArgs = args.filterBy.search.value.length ?
-                                        '&name=' + args.filterBy.search.value : '';
-
+                                dataProvider: function(args) {                                	
+                                    var data = {};
+                                    listViewDataProvider(args, data);
+                                   
                                     $.ajax({
-                                        url: createURL('listClusters' + searchByArgs),
-                                        data: {
-                                            page: args.page,
-                                            pageSize: pageSize,
-                                            listAll: true
-                                        },
+                                        url: createURL('listClusters'),
+                                        data: data,
                                         success: function(json) {
                                             args.response.success({
                                                 data: json.listclustersresponse.cluster
@@ -6789,19 +6781,14 @@
                         },
                         hosts: function() {
                             var listView = $.extend(true, {}, cloudStack.sections.system.subsections.hosts.listView, {
-                                dataProvider: function(args) {
-                                    var searchByArgs = args.filterBy.search.value.length ?
-                                        '&name=' + args.filterBy.search.value : '';
-
+                                dataProvider: function(args) {                                	
                                     var data = {
-                                        page: args.page,
-                                        pageSize: pageSize,
-                                        type: 'routing',
-                                        listAll: true
+                                    	type: 'routing'	
                                     };
-
+                                    listViewDataProvider(args, data);
+                                                                   	
                                     $.ajax({
-                                        url: createURL('listHosts' + searchByArgs),
+                                        url: createURL('listHosts'),
                                         data: data,
                                         success: function(json) {
                                             args.response.success({
@@ -6842,18 +6829,12 @@
                         },
                         primaryStorage: function() {
                             var listView = $.extend(true, {}, cloudStack.sections.system.subsections['primary-storage'].listView, {
-                                dataProvider: function(args) {
-                                    var searchByArgs = args.filterBy.search.value.length ?
-                                        '&name=' + args.filterBy.search.value : '';
-
-                                    var data = {
-                                        page: args.page,
-                                        pageSize: pageSize,
-                                        listAll: true
-                                    };
+                                dataProvider: function(args) {                                	
+                                    var data = {};
+                                    listViewDataProvider(args, data);                                                                 	            	
 
                                     $.ajax({
-                                        url: createURL('listStoragePools' + searchByArgs),
+                                        url: createURL('listStoragePools'),
                                         data: data,
                                         success: function(json) {
                                             args.response.success({
@@ -6900,19 +6881,14 @@
                                     sections: {
                                         secondaryStorage: {
                                             listView: {
-                                                dataProvider: function(args) {
-                                                    var searchByArgs = args.filterBy.search.value.length ?
-                                                        '&name=' + args.filterBy.search.value : '';
-
+                                                dataProvider: function(args) {                                                	
                                                     var data = {
-                                                        type: 'SecondaryStorage',
-                                                        page: args.page,
-                                                        pageSize: pageSize,
-                                                        listAll: true
+                                                    	type: 'SecondaryStorage'
                                                     };
-
+                                                    listViewDataProvider(args, data);                                                                                                  	
+                                                	
                                                     $.ajax({
-                                                        url: createURL('listImageStores' + searchByArgs),
+                                                        url: createURL('listImageStores'),
                                                         data: data,
                                                         success: function(json) {
                                                             args.response.success({
@@ -6941,17 +6917,12 @@
                                         },
                                         cacheStorage: {
                                             listView: {
-                                                dataProvider: function(args) {
-                                                    var searchByArgs = args.filterBy.search.value.length ?
-                                                        '&name=' + args.filterBy.search.value : '';
-
-                                                    var data = {
-                                                        page: args.page,
-                                                        pageSize: pageSize
-                                                    };
-
+                                                dataProvider: function(args) {                                               
+                                                    var data = {};
+                                                    listViewDataProvider(args, data);                                                                                             	
+                                                	
                                                     $.ajax({
-                                                        url: createURL('listSecondaryStagingStores' + searchByArgs),
+                                                        url: createURL('listSecondaryStagingStores'),
                                                         data: data,
                                                         success: function(json) {
                                                             args.response.success({
@@ -6985,17 +6956,13 @@
                         },
                         systemVms: function() {
                             var listView = $.extend(true, {}, cloudStack.sections.system.subsections.systemVms.listView, {
-                                dataProvider: function(args) {
-                                    var searchByArgs = args.filterBy.search.value.length ?
-                                        '&name=' + args.filterBy.search.value : '';
-
+                                dataProvider: function(args) {                                    
+                                    var data = {};
+                                    listViewDataProvider(args, data);                                    
+                                	
                                     $.ajax({
-                                        url: createURL('listSystemVms' + searchByArgs),
-                                        data: {
-                                            page: args.page,
-                                            pageSize: pageSize,
-                                            listAll: true
-                                        },
+                                        url: createURL('listSystemVms'),
+                                        data: data,
                                         success: function(json) {
                                             var systemvmObjs = json.listsystemvmsresponse.systemvm;
                                             if (systemvmObjs != null) {