Fixed fromDocument usage in .cms-tree

See https://github.com/silverstripe/silverstripe-cms/pull/823
This commit is contained in:
Ingo Schommer 2013-08-20 15:37:17 +02:00
parent 26bca388e8
commit c4e54fd7eb

View File

@ -2,13 +2,10 @@
$.entwine('ss.tree', function($){
$('.cms-tree').entwine({
onadd: function(){
var self = this;
$(document).on('context_show.vakata', function(){
self.adjustContextClass(this);
});
this._super();
fromDocument: {
'oncontext_show.vakata': function(e){
this.adjustContextClass();
}
},
/*
* Add and remove classes from context menus to allow for