From fd986acc3d1f16f2141cd82e4597f4ac13bb7094 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Thu, 24 Apr 2014 17:02:55 +0200 Subject: [PATCH] [FIX]dashboard: change layout correct use of modal object bzr revid: csn@openerp.com-20140424150255-77emom1swsfry72h --- addons/board/static/src/js/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js index 75854708055..8273a96bcef 100644 --- a/addons/board/static/src/js/dashboard.js +++ b/addons/board/static/src/js/dashboard.js @@ -91,10 +91,10 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({ var $dialog = new instance.web.Dialog(this, { title: _t("Edit Layout"), }, QWeb.render('DashBoard.layouts', qdict)).open(); - $dialog.find('li').click(function() { + $dialog.$el.find('li').click(function() { var layout = $(this).attr('data-layout'); - $dialog.modal('hide'); self.do_change_layout(layout); + $dialog.$dialog_box.modal('hide'); }); }, do_change_layout: function(new_layout) {