mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
6a6d0f1b35
commit
21243264a7
@ -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);});
|
||||
|
@ -37,7 +37,7 @@ Object.extend(TableField.prototype,{
|
||||
onclick: this.addRow.bind(this)
|
||||
};
|
||||
|
||||
Behaviour.register(rules);
|
||||
Behaviour.register('TableField',rules);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -64,7 +64,7 @@ TableListField.prototype = {
|
||||
};
|
||||
}
|
||||
|
||||
Behaviour.register(rules);
|
||||
Behaviour.register('TableListField',rules);
|
||||
if(summaryCols) {
|
||||
//this._getSummaryDefs(summaryCols);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user