parent
03998575ca
commit
915670afb5
|
@ -15,14 +15,20 @@
|
|||
<t t-raw="script"/>
|
||||
<t t-if="editable">
|
||||
<script type="text/javascript" src="/website/static/src/js/website_bootstrap.js"></script>
|
||||
<link href="http://cdn.aloha-editor.org/latest/css/aloha.css" rel="stylesheet" type="text/css" />
|
||||
<script>
|
||||
openerp.$ = jQuery;
|
||||
delete window.jQuery;
|
||||
delete window.$;
|
||||
</script>
|
||||
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/require.js"></script>
|
||||
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/vendor/jquery-1.7.2.js"></script>
|
||||
<script src="http://cdn.aloha-editor.org/latest/lib/aloha.js" data-aloha-plugins="common/ui, common/format, common/list, common/link, common/highlighteditables"></script>
|
||||
<link href="http://cdn.aloha-editor.org/latest/css/aloha.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
Aloha.ready(function() {
|
||||
var $ = Aloha.jQuery;
|
||||
$('.editable').aloha();
|
||||
window.$ = openerp.$;
|
||||
window.jQuery = openerp.$;
|
||||
Aloha.jQuery('.editable').aloha();
|
||||
});
|
||||
</script>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue