[Fusionforge-commits] r13028 - in trunk/src: common/docman/views www/docman/scripts

Franck VILLAUME nerville at fusionforge.org
Wed Apr 6 00:09:07 CEST 2011


Author: nerville
Date: 2011-04-06 00:09:06 +0200 (Wed, 06 Apr 2011)
New Revision: 13028

Modified:
   trunk/src/common/docman/views/listfile.php
   trunk/src/www/docman/scripts/DocManController.js
Log:
start implement reload div size

Modified: trunk/src/common/docman/views/listfile.php
===================================================================
--- trunk/src/common/docman/views/listfile.php	2011-04-05 21:28:26 UTC (rev 13027)
+++ trunk/src/common/docman/views/listfile.php	2011-04-05 22:09:06 UTC (rev 13028)
@@ -41,6 +41,8 @@
 	session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
 }
 
+$treesize = getIntFromRequest('tree');
+
 $df->setDocGroupID($dirid);
 
 /**
@@ -104,7 +106,8 @@
 		lockIntervalDelay:	60000, //in microsecond and if you change this value, please update the check value 600
 		divLeft:		jQuery('#left'),
 		divHandle:		jQuery('#handle'),
-		divRight:		jQuery('#right')
+		divRight:		jQuery('#right'),
+		treesize:		'<?php echo $treesize ?>'
 	});
 });
 

Modified: trunk/src/www/docman/scripts/DocManController.js
===================================================================
--- trunk/src/www/docman/scripts/DocManController.js	2011-04-05 21:28:26 UTC (rev 13027)
+++ trunk/src/www/docman/scripts/DocManController.js	2011-04-05 22:09:06 UTC (rev 13028)
@@ -77,9 +77,13 @@
 				if (isDragging) {
 					params.divLeft.css('width', e.pageX);
 					params.divRight.css('width', w - e.pageX);
+					for (var i = 0; i< jQuery('.ThemeXPFolderText > a').length; i++) {
+						jQuery('.ThemeXPFolderText > a')[i]['href'] = jQuery('.ThemeXPFolderText > a')[i]['href'] + '&tree=' + params.divLeft.width();
+					}
 				}
 			}
 		});
+
 	},
 
 	initHandlerSize:function() {
@@ -88,6 +92,9 @@
 		} else {
 			this.params.divHandle.css('height', this.params.divRight.height());
 		}
+		if (this.params.treesize != 0) {
+			this.params.divLeft.css('width', this.params.treesize);
+		}
 	},
 
 	dragging: function() {




More information about the Fusionforge-commits mailing list