[pve-devel] r4873 - in pve-manager/pve2: . www/manager

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Jul 5 11:34:00 CEST 2010


Author: dietmar
Date: 2010-07-05 09:34:00 +0000 (Mon, 05 Jul 2010)
New Revision: 4873

Modified:
   pve-manager/pve2/ChangeLog
   pve-manager/pve2/www/manager/PVECache.js
   pve-manager/pve2/www/manager/PVEFilter.js
   pve-manager/pve2/www/manager/PVEUtils.js
   pve-manager/pve2/www/manager/ResourceTree.js
Log:
   * www/manager/PVECache.js: remove unnecessary 'viewname'



Modified: pve-manager/pve2/ChangeLog
===================================================================
--- pve-manager/pve2/ChangeLog	2010-07-05 09:24:31 UTC (rev 4872)
+++ pve-manager/pve2/ChangeLog	2010-07-05 09:34:00 UTC (rev 4873)
@@ -1,5 +1,7 @@
 2010-07-05  Proxmox Support Team  <support at proxmox.com>
 
+	* www/manager/PVECache.js: remove unnecessary 'viewname'
+
 	* www/manager/PVEUtils.js: add filterfn - enable filtered views
 
 	* www/manager/startup.pl: install startup.pl script to init

Modified: pve-manager/pve2/www/manager/PVECache.js
===================================================================
--- pve-manager/pve2/www/manager/PVECache.js	2010-07-05 09:24:31 UTC (rev 4872)
+++ pve-manager/pve2/www/manager/PVECache.js	2010-07-05 09:34:00 UTC (rev 4873)
@@ -67,8 +67,6 @@
 
 	var text_filter = '';
 
-	var viewname = 'server';
-
 	var text_filter_fn = function(item) {
 	    if (text_filter) {
 		var match = false;

Modified: pve-manager/pve2/www/manager/PVEFilter.js
===================================================================
--- pve-manager/pve2/www/manager/PVEFilter.js	2010-07-05 09:24:31 UTC (rev 4872)
+++ pve-manager/pve2/www/manager/PVEFilter.js	2010-07-05 09:34:00 UTC (rev 4873)
@@ -110,7 +110,7 @@
 	
 	var win = this;
 
-	var viewinfo = PVE.Utils.default_groups[config.loadview || 'server'];
+	var viewinfo = PVE.Utils.default_groups[config.loadview || PVE.Utils.default_group];
 
 	var grid = new PVE.FilterGrid({ border: false });
 

Modified: pve-manager/pve2/www/manager/PVEUtils.js
===================================================================
--- pve-manager/pve2/www/manager/PVEUtils.js	2010-07-05 09:24:31 UTC (rev 4872)
+++ pve-manager/pve2/www/manager/PVEUtils.js	2010-07-05 09:34:00 UTC (rev 4873)
@@ -282,6 +282,8 @@
 	return res;
     };
 
+    utils.default_group = 'server';
+
     utils.default_groups = {
 	custom: {
 	    text: 'Custom View',

Modified: pve-manager/pve2/www/manager/ResourceTree.js
===================================================================
--- pve-manager/pve2/www/manager/ResourceTree.js	2010-07-05 09:24:31 UTC (rev 4872)
+++ pve-manager/pve2/www/manager/ResourceTree.js	2010-07-05 09:34:00 UTC (rev 4873)
@@ -164,7 +164,7 @@
 
 PVE.ResourceTree = Ext.extend(Ext.tree.TreePanel, {
 
-    viewname: 'server',
+    viewname: PVE.Utils.default_group,
 
     initView: function(viewname) {
 	this.viewname = viewname;



More information about the pve-devel mailing list