fix alhoa

bzr revid: al@openerp.com-20130702113542-muenv5qyavjwqgtw
This commit is contained in:
Antony Lesuisse 2013-07-02 13:35:42 +02:00
parent 03998575ca
commit 915670afb5
1 changed files with 12 additions and 6 deletions

View File

@ -15,15 +15,21 @@
<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">
Aloha.ready( function() {
var $ = Aloha.jQuery;
$('.editable').aloha();
});
<script>
Aloha.ready(function() {
window.$ = openerp.$;
window.jQuery = openerp.$;
Aloha.jQuery('.editable').aloha();
});
</script>
</t>
</head>