Author: damoxc
Revision: 6141
Log:
rename the TreeGridCustomColumn to TreeGridRenderColumn and add the
column object to the template so its accessible from the renderer
Diff:
Modified: trunk/deluge/ui/web/js/ext-extensions/.build
===================================================================
--- trunk/deluge/ui/web/js/ext-extensions/.build 2010-01-26 02:42:30 UTC
(rev 6140)
+++ trunk/deluge/ui/web/js/ext-extensions/.build 2010-01-26 13:11:29 UTC
(rev 6141)
@@ -12,5 +12,5 @@
add_file "TreeGridNodeUI.js"
add_file "TreeGridLoader.js"
add_file "TreeGridColumns.js"
-add_file "TreeGridCustomColumn.js"
+add_file "TreeGridRenderColumn.js"
add_file "TreeGrid.js"
Deleted: trunk/deluge/ui/web/js/ext-extensions/TreeGridCustomColumn.js
===================================================================
--- trunk/deluge/ui/web/js/ext-extensions/TreeGridCustomColumn.js
2010-01-26 02:42:30 UTC (rev 6140)
+++ trunk/deluge/ui/web/js/ext-extensions/TreeGridCustomColumn.js
2010-01-26 13:11:29 UTC (rev 6141)
@@ -1,9 +0,0 @@
-Ext.tree.CustomColumn = Ext.extend(Ext.tree.Column, {
-
- constructor: function(c) {
- c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex +
':this.format}');
- c.tpl.format = c.renderer;
- Ext.tree.CustomColumn.superclass.constructor.call(this, c);
- }
-});
-Ext.reg('tgcustomcolumn', Ext.tree.CustomColumn);
Copied: trunk/deluge/ui/web/js/ext-extensions/TreeGridRenderColumn.js (from rev
6140, trunk/deluge/ui/web/js/ext-extensions/TreeGridCustomColumn.js)
===================================================================
--- trunk/deluge/ui/web/js/ext-extensions/TreeGridRenderColumn.js
(rev 0)
+++ trunk/deluge/ui/web/js/ext-extensions/TreeGridRenderColumn.js
2010-01-26 13:11:29 UTC (rev 6141)
@@ -0,0 +1,10 @@
+Ext.tree.RenderColumn = Ext.extend(Ext.tree.Column, {
+
+ constructor: function(c) {
+ c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex +
':this.format}');
+ c.tpl.format = c.renderer;
+ c.tpl.col = this;
+ Ext.tree.RenderColumn.superclass.constructor.call(this, c);
+ }
+});
+Ext.reg('tgrendercolumn', Ext.tree.RenderColumn);
Modified: trunk/deluge/ui/web/server.py
===================================================================
--- trunk/deluge/ui/web/server.py 2010-01-26 02:42:30 UTC (rev 6140)
+++ trunk/deluge/ui/web/server.py 2010-01-26 13:11:29 UTC (rev 6141)
@@ -331,7 +331,7 @@
"/js/ext-extensions/TreeGridNodeUI.js",
"/js/ext-extensions/TreeGridLoader.js",
"/js/ext-extensions/TreeGridColumns.js",
- "/js/ext-extensions/TreeGridCustomColumn.js",
+ "/js/ext-extensions/TreeGridRenderColumn.js",
"/js/ext-extensions/TreeGrid.js",
"/config.js",
"/gettext.js",
--
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en.