[IMP] Click on openerp element then close resolution dialog.

bzr revid: bth@tinyerp.com-20121022061553-icx3zjy0n678bemm
This commit is contained in:
Bhumi Thakkar (Open ERP)
2012-10-22 11:45:53 +05:30
parent decc05e68e
commit c429019b5c
+4
View File
@@ -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");