1
0
Fork 0
mirror of https://github.com/NaN-tic/sao-old.git synced 2023-12-14 02:12:52 +01:00
sao-old/index.html
2013-01-08 13:32:10 +01:00

53 lines
2.4 KiB
HTML

<!DOCTYPE html>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<TITLE>Tryton</TITLE>
<SCRIPT type="text/javascript" src="external/jquery.js"></SCRIPT>
<SCRIPT type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write(unescape('%3CSCRIPT type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"%3E%3C/SCRIPT%3E'));
}
</SCRIPT>
<SCRIPT type="text/javascript" src="external/jquery-ui.js"></SCRIPT>
<LINK rel="stylesheet" type="text/css" href="external/jquery-ui.css"
media="screen"/>
<SCRIPT type="text/javascript">
if (typeof jQuery.ui == 'undefined') {
document.write(unescape('%3CSCRIPT type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"%3E%3C/SCRIPT%3E'));
document.write(unescape('%3CLINK rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" media="screen"/%3E'));
}
</SCRIPT>
<SCRIPT type="text/javascript" src="dist/sao.min.js"></SCRIPT>
<SCRIPT type="text/javascript">
if (typeof Sao == 'undefined') {
document.write(unescape('%3CSCRIPT type="text/javascript" src="dist/sao.js"%3E%3C/SCRIPT%3E'));
}
</SCRIPT>
</HEAD>
<BODY>
<DIV id="main">
<DIV id="menu"></DIV>
<DIV id="tabs"><UL></UL></DIV>
</DIV>
<SCRIPT type="text/javascript">
$(function() {
dfd = jQuery.Deferred();
Sao.Session.get_credentials(dfd);
dfd.done(function(session) {
Sao.Session.current_session = session;
var form = new Sao.Tab.Form('ir.ui.menu', {
'mode': ['tree'],
'view_ids': [3],
'domain': [['parent', '=', null]]
});
form.view_prm.done(function() {
jQuery('#menu').append(form.screen.el.detach());
});
});
});
</SCRIPT>
</BODY>
</HTML>