Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1372 Rev 1422
1
/*
1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
3
	All Rights Reserved.
4
 
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
9
*/
-
 
10
 
-
 
11
 
10
 
12
 
11
dojo.provide("dojo.widget.Toggler");
13
dojo.provide("dojo.widget.Toggler");
12
dojo.require("dojo.widget.*");
14
dojo.require("dojo.widget.*");
13
dojo.require("dojo.event.*");
15
dojo.require("dojo.event.*");
14
dojo.widget.defineWidget("dojo.widget.Toggler", dojo.widget.HtmlWidget, {targetId:"", fillInTemplate:function () {
16
dojo.widget.defineWidget("dojo.widget.Toggler", dojo.widget.HtmlWidget, {targetId:"", fillInTemplate:function () {
15
	dojo.event.connect(this.domNode, "onclick", this, "onClick");
17
	dojo.event.connect(this.domNode, "onclick", this, "onClick");
16
}, onClick:function () {
18
}, onClick:function () {
17
	var pane = dojo.widget.byId(this.targetId);
19
	var pane = dojo.widget.byId(this.targetId);
18
	if (!pane) {
20
	if (!pane) {
19
		return;
21
		return;
20
	}
22
	}
21
	pane.explodeSrc = this.domNode;
23
	pane.explodeSrc = this.domNode;
22
	pane.toggleShowing();
24
	pane.toggleShowing();
23
}});
25
}});
24
 
26