You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
853 B
28 lines
853 B
2 years ago
|
/*
|
||
|
Copyright (c) 2004-2006, The Dojo Foundation
|
||
|
All Rights Reserved.
|
||
|
|
||
|
Licensed under the Academic Free License version 2.1 or above OR the
|
||
|
modified BSD license. For more information on Dojo licensing, see:
|
||
|
|
||
|
http://dojotoolkit.org/community/licensing.shtml
|
||
|
*/
|
||
|
|
||
|
function displayList() {
|
||
|
this.update = function (message) {
|
||
|
var clickedTreeNode = message.node;
|
||
|
var listPane = dojo.widget.getWidgetById("listPane");
|
||
|
var url = "Mail/" + clickedTreeNode.title.replace(" ", "") + ".html";
|
||
|
listPane.setUrl(url);
|
||
|
};
|
||
|
}
|
||
|
var displayer = new displayList();
|
||
|
var nodeSelectionTopic = dojo.event.topic.getTopic("listSelected");
|
||
|
nodeSelectionTopic.subscribe(displayer, "update");
|
||
|
function displayMessage(name) {
|
||
|
var contentPane = dojo.widget.getWidgetById("contentPane");
|
||
|
var url = "Mail/" + name.replace(" ", "") + ".html";
|
||
|
contentPane.setUrl(url);
|
||
|
}
|
||
|
|