[FIX] crappy snippets initialization signal
bzr revid: xmo@openerp.com-20130923130321-lpbxy7qckcu0svrp
This commit is contained in:
parent
7ed222baf3
commit
59b46346b1
|
@ -236,12 +236,8 @@
|
|||
|
||||
this.rte = new website.RTE(this);
|
||||
this.rte.on('change', this, this.proxy('rte_changed'));
|
||||
var instanceReady = false;
|
||||
this.rte.on('instanceReady', this, function () {
|
||||
clearTimeout(instanceReady);
|
||||
instanceReady = setTimeout(function () {
|
||||
self.trigger('rte:ready');
|
||||
}, 0);
|
||||
this.rte.on('rte:ready', this, function () {
|
||||
self.trigger('rte:ready');
|
||||
});
|
||||
|
||||
return $.when(
|
||||
|
@ -337,6 +333,8 @@
|
|||
root.contentEditable = false;
|
||||
|
||||
self.setup_editables(root);
|
||||
|
||||
self.trigger('rte:ready');
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue