1,3 → 1,36 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This library is free software; you can redistribute it and/or | |
// | modify it under the terms of the GNU General Public | |
// | License as published by the Free Software Foundation; either | |
// | version 2.1 of the License, or (at your option) any later version. | |
// | | |
// | This library is distributed in the hope that it will be useful, | |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
// | General Public License for more details. | |
// | | |
// | You should have received a copy of the GNU General Public | |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: telechargement.js,v 1.2 2007-06-25 12:15:07 alexandre_tb Exp $ |
/** |
* Application projet |
* |
* La service de telechargement |
* |
*@package projet |
//Auteur original : |
*@author Alexandre Granier <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2007 |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
var dojoConfig = { |
isDebug: true |
}; |
20,8 → 53,8 |
|
// Si non on dirige vers le document |
if ( !isFolder) { |
var link = treeNode['link']; |
document.location.href= 'client/projet/fichiers/'+link; |
var link = treeNode['link']; |
document.location.href =link; |
} else { |
var repertoire = dojo.widget.manager.getWidgetById('treeController'); |
repertoire.expand(treeNode); |
34,10 → 67,10 |
|
// on connecte le select event a la fonction treeSelectFired() --> |
dojo.event.connect(treeSelector,'select','treeSelectFired'); |
var rootNode = dojo.widget.manager.getWidgetById('rootNode'); |
|
// On ouvre le noeud racine |
var rootNode = dojo.widget.manager.getWidgetById('rootNode'); |
rootNode.expand(); |
} |
|
dojo.addOnLoad(init); |
dojo.addOnLoad(init); |