Subversion Repositories Applications.papyrus

Rev

Rev 1322 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1322 Rev 1471
Line -... Line 1...
-
 
1
/*vim: set expandtab tabstop=4 shiftwidth=4: */
-
 
2
// +------------------------------------------------------------------------------------------------------+
-
 
3
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
-
 
4
// +------------------------------------------------------------------------------------------------------+
-
 
5
// | This library is free software; you can redistribute it and/or                                        |
-
 
6
// | modify it under the terms of the GNU General Public                                                  |
-
 
7
// | License as published by the Free Software Foundation; either                                         |
-
 
8
// | version 2.1 of the License, or (at your option) any later version.                                   |
-
 
9
// |                                                                                                      |
-
 
10
// | This library is distributed in the hope that it will be useful,                                      |
-
 
11
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
-
 
12
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
-
 
13
// | General Public License for more details.                                                             |
-
 
14
// |                                                                                                      |
-
 
15
// | You should have received a copy of the GNU General Public                                            |
-
 
16
// | License along with this library; if not, write to the Free Software                                  |
-
 
17
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
-
 
18
// +------------------------------------------------------------------------------------------------------+
-
 
19
// CVS : $Id: telechargement.js,v 1.2 2007-06-25 12:15:07 alexandre_tb Exp $
-
 
20
/**
-
 
21
* Application projet
-
 
22
*
-
 
23
* La service de telechargement
-
 
24
*
-
 
25
*@package projet
-
 
26
//Auteur original :
-
 
27
*@author        Alexandre Granier <alexandre@tela-botanica.org>
-
 
28
//Autres auteurs :
-
 
29
*@author        Aucun
-
 
30
*@copyright     Tela-Botanica 2000-2007
-
 
31
*@version       $Revision: 1.2 $
-
 
32
// +------------------------------------------------------------------------------------------------------+
-
 
33
*/
1
var dojoConfig = {
34
var dojoConfig = {
2
isDebug: true
35
isDebug: true
3
};
36
};
Line 4... Line 37...
4
 
37
 
Line 18... Line 51...
18
	// le noeud est il un repertoire
51
	// le noeud est il un repertoire
19
	var isFolder = treeNode['isFolder'];
52
	var isFolder = treeNode['isFolder'];
Line 20... Line 53...
20
 
53
 
21
	// Si non on dirige vers le document
54
	// Si non on dirige vers le document
22
	if ( !isFolder) {
55
	if ( !isFolder) {
23
		var link = treeNode['link'];
56
	    var link = treeNode['link'];
24
	    document.location.href= 'client/projet/fichiers/'+link;
57
	    document.location.href =link;
25
	} else {
58
	} else {
26
		var repertoire = dojo.widget.manager.getWidgetById('treeController');
59
		var repertoire = dojo.widget.manager.getWidgetById('treeController');
27
		repertoire.expand(treeNode);
60
		repertoire.expand(treeNode);
28
	}
61
	}
Line 32... Line 65...
32
    // une reference vers treeSelector
65
    // une reference vers treeSelector
33
    var treeSelector = dojo.widget.manager.getWidgetById('treeSelector');
66
    var treeSelector = dojo.widget.manager.getWidgetById('treeSelector');
Line 34... Line 67...
34
 
67
 
35
    // on connecte le select event a la fonction treeSelectFired() -->
68
    // on connecte le select event a la fonction treeSelectFired() -->
36
    dojo.event.connect(treeSelector,'select','treeSelectFired');
-
 
Line 37... Line 69...
37
	var rootNode = dojo.widget.manager.getWidgetById('rootNode');
69
    dojo.event.connect(treeSelector,'select','treeSelectFired');
-
 
70
	
38
	
71
	// On ouvre le noeud racine
39
	// On ouvre le noeud racine
72
	var rootNode = dojo.widget.manager.getWidgetById('rootNode');
Line 40... Line -...
40
	rootNode.expand();    
-
 
41
}
73
	rootNode.expand();    
-
 
74
}