// =========================================================================== // eXe // Copyright 2004-2005, University of Auckland // // This program 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 of the License, or // (at your option) any later version. // // This program 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 program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // =========================================================================== // This file contains all the js related to the main xul page // This var is needed, because initWindow is called twice for some reason var haveLoaded = false // Set to false to stop selects doing page reloads var clickon = true // Takes a server tree node id eg. '1' and returns a xul treeitem elemtent // reference function serverId2treeitem(serverId) { // Enumerate the tree elements until we find the correct one var tree = document.getElementById('outlineTree') var items = tree.getElementsByTagName('treeitem') for (var i=0; i