From c429019b5c56ce1a835f0854834fb935e6cb6407 Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Mon, 22 Oct 2012 11:45:53 +0530 Subject: [PATCH] [IMP] Click on openerp element then close resolution dialog. bzr revid: bth@tinyerp.com-20121022061553-icx3zjy0n678bemm --- addons/web/static/src/js/chrome.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index a039433f09b..41039749528 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -986,6 +986,10 @@ instance.web.WebClient = instance.web.Client.extend({ self.$el.on('contextmenu','.oe_logo',function(e) { instance.web.dialog($(QWeb.render('Resolution')),{ title: "OpenERP Resolution" }); + + $(self.$el).click(function(){ + $('.resolution').dialog('close'); + }) $('.resolution a').click(function() { self.$el.find('.oe_logo').css('width', $(this).attr('awidth')+"px"); self.$el.find('.oe_logo').css('height', $(this).attr('aheight')+"px");