Merged [47060].

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60486 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-08-12 04:50:00 +00:00
parent af60007c9b
commit fc52af2668
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ ComplexTableField.prototype = {
}.bind(this) }.bind(this)
}; };
} }
Behaviour.register('ComplexTableField',rules); Behaviour.register('ComplexTableField_'+this.id,rules);
// HACK If already in a popup, we can't allow add (doesn't save existing relation correctly) // HACK If already in a popup, we can't allow add (doesn't save existing relation correctly)
if(window != top) $$('#'+this.id+' table.data a.addlink').each(function(el) {Element.hide(el);}); if(window != top) $$('#'+this.id+' table.data a.addlink').each(function(el) {Element.hide(el);});

View File

@ -37,7 +37,7 @@ Object.extend(TableField.prototype,{
onclick: this.addRow.bind(this) onclick: this.addRow.bind(this)
}; };
Behaviour.register('TableField',rules); Behaviour.register('TableField_'+this.id,rules);
}, },
/** /**

View File

@ -64,7 +64,7 @@ TableListField.prototype = {
}; };
} }
Behaviour.register('TableListField',rules); Behaviour.register('TableListField_'+this.id,rules);
if(summaryCols) { if(summaryCols) {
//this._getSummaryDefs(summaryCols); //this._getSummaryDefs(summaryCols);
} }