[IMP] Make the logo trigger client action 'home' instead of a link

bzr revid: fme@openerp.com-20120905154121-8lokz9x0x7fraidd
This commit is contained in:
Fabien Meghazi
2012-09-05 17:41:21 +02:00
parent 51094bd0de
commit a01a27e480
2 changed files with 4 additions and 4 deletions
+3
View File
@@ -964,6 +964,9 @@ instance.web.WebClient = instance.web.Client.extend({
start: function() {
var self = this;
return $.when(this._super()).pipe(function() {
self.$el.on('click', '.oe_logo', function() {
self.action_manager.do_action('home');
});
if (jQuery.param !== undefined && jQuery.deparam(jQuery.param.querystring()).kitten !== undefined) {
$("body").addClass("kitten-mode-activated");
if ($.blockUI) {
+1 -4
View File
@@ -404,10 +404,7 @@
</tr>
<tr>
<td class="oe_leftbar" valign="top">
<t t-js="d">
d.url = '/' + (window.location.search || '');
</t>
<a t-att-href="url" class="oe_logo"><img t-att-src='_s + "/web/static/src/img/logo.png"'/></a>
<a class="oe_logo" href="#"><img t-att-src='_s + "/web/static/src/img/logo.png"'/></a>
<div class="oe_secondary_menus_container"/>
<div class="oe_footer">
Powered by <a href="http://www.openerp.com" target="_blank"><span>Open</span>ERP</a>