disable paginate and filter of site list in tenant view
Scott Baker [Wed, 14 Jan 2015 08:47:50 +0000 (00:47 -0800)]
planetstack/core/xoslib/static/js/xosTenant.js
planetstack/core/xoslib/static/js/xoslib/xosHelper.js

index 48ac835..268b8ca 100644 (file)
@@ -102,7 +102,7 @@ XOSTenantApp.buildViews = function() {
      tenantSummaryClass = XOSDetailView.extend({template: "#xos-detail-template",\r
                                                 app: XOSTenantApp,\r
                                                 detailFields: ["serviceClass", "default_image", "default_flavor", "network_ports", "mount_data_sets"],\r
-                                                fieldDisplayNames: {serviceClass: "Service Level", "default_flavor": "Flavor", "default_image": "Image"},\r
+                                                fieldDisplayNames: {serviceClass: "Service Level", "default_flavor": "Flavor", "default_image": "Image", "mount_data_sets": "Data Sets"},\r
                                                 });\r
 \r
      XOSTenantApp.tenantSummaryView = tenantSummaryClass;\r
@@ -125,6 +125,8 @@ XOSTenantApp.buildViews = function() {
                                                title: "sites",\r
                                                inputType: {allocated: "spinner"},\r
                                                noDeleteColumn: true,\r
+                                               disablePaginate: true,\r
+                                               disableFilter: true,\r
                                                });\r
 \r
      XOSTenantApp.tenantSiteListView = tenantSiteListClass;\r
index 07ae9a9..b479e87 100644 (file)
@@ -913,6 +913,8 @@ XOSDataTableView = Marionette.View.extend( {
             "bJQueryUI": true,
             "bStateSave": true,
             "bServerSide": true,
+            "bFilter": ! (view.options.disableFilter || view.disableFilter),
+            "bPaginate": ! (view.options.disablePaginate || view.disablePaginate),
             "aoColumns": view.columnsByIndex,
 
             fnServerData: function(sSource, aoData, fnCallback, settings) {