[IMP] Even more improvements to web client.

bzr revid: nicolas.vanhoren@openerp.com-20110412131948-7vtg4cdg3lp4st1q
This commit is contained in:
niv-openerp 2011-04-12 15:19:48 +02:00
parent b70b02bc51
commit ae1714dd4b
3 changed files with 12 additions and 2 deletions

View File

@ -672,3 +672,7 @@ body.openerp {
background-position: 21px 0;
}
.openerp .kitten-mode-activated {
background: url(http://placekitten.com/g/214/99) repeat;
}

View File

@ -884,7 +884,12 @@ openerp.base.WebClient = openerp.base.Controller.extend({
this._super(null, element_id);
QWeb.add_template("xml/base.xml");
this.$element.html(QWeb.render("Interface", {}));
var params = {};
if(jQuery.param != undefined &&
jQuery.deparam(jQuery.param.querystring()).kitten != undefined) {
params = {kitten:1};
}
this.$element.html(QWeb.render("Interface", params));
this.session = new openerp.base.Session("oe_errors");
this.loading = new openerp.base.Loading(this.session, "oe_loading");

View File

@ -21,7 +21,8 @@
<div style="position: absolute; right: 2px; top: 38px;">
<button onclick="QWeb.add_template('base.xml'); $('body').css('background-color', '#FFFF9C'); setTimeout(function() { $('body').css('background-color', '#FFF'); }, 500);">Reload QWEB</button>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"
t-att-class="'main_table' + (typeof kitten == 'undefined' ? '' : ' kitten-mode-activated')">
<tr>
<td colspan="2">
<div id="oe_header" class="header"></div>