Merged [47056]: Adds unique identifier when creating Behaviour rule sheets to prevent duplicate behaviours from being applied repeatedly.

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

View File

@ -23,7 +23,7 @@ ComplexTableField.prototype = {
}.bind(this)
};
}
Behaviour.register(rules);
Behaviour.register('ComplexTableField',rules);
// 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);});

View File

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

View File

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