[IMP] website snippet: change trigger of dropped and activate snippet for tour and runbot snippet tests

bzr revid: chm@openerp.com-20131206154759-7t67lat285zrc2mk
This commit is contained in:
Christophe Matthieu
2013-12-06 16:47:59 +01:00
parent 1071cdb1d3
commit d4c38fc501
@@ -245,9 +245,7 @@
this.create_overlay(this.$active_snipped_id);
this.snippet_focus($snippet);
}
if (_.isFunction($snippet.trigger)) {
$snippet.trigger('snippet-activated');
}
$("#oe_snippets").trigger('snippet-activated', $snippet);
},
create_overlay: function ($snippet) {
if (typeof $snippet.data("snippet-editor") === 'undefined') {
@@ -384,7 +382,7 @@
}
}
setTimeout(function () {
$snippet.trigger('snippet-dropped');
$("#oe_snippets").trigger('snippet-dropped', $target);
self.make_active($target);
},0);
} else {