• R/O
  • SSH
  • HTTPS

tenarai: 提交


Commit MetaInfo

修訂130 (tree)
時間2008-10-28 23:07:14
作者junkikuchi

Log Message

updated.

Change Summary

差異

--- trunk/webapp/Widget/Yahoo/UI/Layout.rb (revision 129)
+++ trunk/webapp/Widget/Yahoo/UI/Layout.rb (revision 130)
@@ -119,14 +119,16 @@
119119 end.join(', ')
120120
121121 head.code <<-END
122-var Dom = YAHOO.util.Dom;
123-var Event = YAHOO.util.Event;
122+(function() {
123+ var Dom = YAHOO.util.Dom;
124+ var Event = YAHOO.util.Event;
124125
125-Event.onDOMReady(function() {
126- new YAHOO.widget.Layout({
127- units: [#{units}]
128- }).render();
129-});
126+ Event.onDOMReady(function() {
127+ new YAHOO.widget.Layout({
128+ units: [#{units}]
129+ }).render();
130+ });
131+})();
130132 END
131133 end
132134 end
--- trunk/webapp/Widget/Yahoo/UI/Loader.rb (revision 129)
+++ trunk/webapp/Widget/Yahoo/UI/Loader.rb (revision 130)
@@ -34,16 +34,18 @@
3434
3535 script = head.tag('script', 'type' => 'text/javascript')
3636 script.code <<-END
37-new YAHOO.util.YUILoader({
38- require: [#{modules}],
39- onSuccess: function() {
40- END
37+(function() {
38+ (new YAHOO.util.YUILoader({
39+ require: [#{modules}],
40+ onSuccess: function() {
41+ END
4142
42- super(script, body)
43+ super(script, body)
4344
44- script.code <<-END
45- }
46-}).insert();
45+ script.code <<-END
46+ }
47+ })).insert();
48+})();
4749 END
4850 end
4951 end
--- trunk/webapp/Widget/Yahoo/UI/TreeView.rb (revision 129)
+++ trunk/webapp/Widget/Yahoo/UI/TreeView.rb (revision 130)
@@ -29,20 +29,22 @@
2929 end
3030
3131 head.code <<-END
32-new YAHOO.widget.TreeView('#{html_id}', [
33- {type:"text", label:"List 0", children: [
34- {type:"text", label:"List 0-0", children: [
35- "item 0-0-0",
36- "item 0-0-1"
37- ]},
38- {type:"text", label:"item 0-1", children: [
39- {type:"text", label:"elsewhere", href:"www.elsewhere.com", target:"_new", title:"go elsewhere", children: [
40- "item 0-1-0",
41- "item 0-1-1"
32+(function() {
33+ (new YAHOO.widget.TreeView('#{html_id}', [
34+ {type:"text", label:"List 0", children: [
35+ {type:"text", label:"List 0-0", children: [
36+ "item 0-0-0",
37+ "item 0-0-1"
38+ ]},
39+ {type:"text", label:"item 0-1", children: [
40+ {type:"text", label:"elsewhere", href:"www.elsewhere.com", target:"_new", title:"go elsewhere", children: [
41+ "item 0-1-0",
42+ "item 0-1-1"
43+ ]}
4244 ]}
4345 ]}
44- ]}
45-]).render();
46+ ])).render();
47+})();
4648 END
4749 end
4850 end
Show on old repository browser