Author: damoxc
Revision: 6116
Log:
disable the override to formlayout for the time being
Diff:
Modified: trunk/deluge/ui/web/js/ext-extensions-debug.js
===================================================================
--- trunk/deluge/ui/web/js/ext-extensions-debug.js 2010-01-23 15:34:32 UTC
(rev 6115)
+++ trunk/deluge/ui/web/js/ext-extensions-debug.js 2010-01-23 15:34:50 UTC
(rev 6116)
@@ -1027,36 +1027,36 @@
// Taken from http://extjs.com/forum/showthread.php?t=75273
// remove spaces for hidden elements and make show(), hide(), enable() and
disable() act on the label. don't use hideLabel with this
-Ext.override(Ext.layout.FormLayout, {
- renderItem: function(c, position, target) {
- if (c && !c.rendered && c.isFormField && c.inputType !=
'hidden') {
- var args = [
- c.id, c.fieldLabel,
- c.labelStyle||this.labelStyle||'',
- this.elementStyle||'',
- typeof c.labelSeparator == 'undefined' ?
this.labelSeparator : c.labelSeparator,
- (c.itemCls||this.container.itemCls||'') +
(c.hideLabel ? ' x-hide-label' : ''),
- c.clearCls || 'x-form-clear-left'
- ];
- if(typeof position == 'number') {
- position = target.dom.childNodes[position] ||
null;
- }
- if (position) {
- c.formItem =
this.fieldTpl.insertBefore(position, args, true);
- }
- else {
- c.formItem = this.fieldTpl.append(target, args,
true);
- }
- c.actionMode = 'formItem';
- c.render('x-form-el-'+c.id);
- c.container = c.formItem;
- c.actionMode = 'container';
- }
- else {
- Ext.layout.FormLayout.superclass.renderItem.apply(this,
arguments);
- }
- }
-});
+//Ext.override(Ext.layout.FormLayout, {
+// renderItem: function(c, position, target) {
+// if (c && !c.rendered && c.isFormField && c.inputType !=
'hidden') {
+// var args = [
+// c.id, c.fieldLabel,
+// c.labelStyle||this.labelStyle||'',
+// this.elementStyle||'',
+// typeof c.labelSeparator == 'undefined' ?
this.labelSeparator : c.labelSeparator,
+// (c.itemCls||this.container.itemCls||'') +
(c.hideLabel ? ' x-hide-label' : ''),
+// c.clearCls || 'x-form-clear-left'
+// ];
+// if(typeof position == 'number') {
+// position = target.dom.childNodes[position] ||
null;
+// }
+// if (position) {
+// c.formItem =
this.fieldTpl.insertBefore(position, args, true);
+// }
+// else {
+// c.formItem = this.fieldTpl.append(target, args,
true);
+// }
+// c.actionMode = 'formItem';
+// c.render('x-form-el-'+c.id);
+// c.container = c.formItem;
+// c.actionMode = 'container';
+// }
+// else {
+// Ext.layout.FormLayout.superclass.renderItem.apply(this,
arguments);
+// }
+// }
+//});
Ext.override(Ext.form.TriggerField, {
actionMode: 'wrap',
onShow: Ext.form.TriggerField.superclass.onShow,
--
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.