[FIX]some cosmetic of code

bzr revid: csn@openerp.com-20140411122840-tv1mx2nu5p2is669
This commit is contained in:
Cedric Snauwaert 2014-04-11 14:28:40 +02:00
parent 3a4e264978
commit 89d665aa79
2 changed files with 2 additions and 3 deletions

View File

@ -88,7 +88,7 @@ openerp.account = function (instance) {
if (ids.length === 0) {
new instance.web.Dialog(this, {
title: _t("Warning"),
modal_size: 'medium',
size: 'medium',
}, $("<div />").text(_t("You must choose at least one record."))).open();
return false;
}

View File

@ -95,8 +95,7 @@ openerp_mail_followers = function(session, mail) {
var user_pid = $currentTarget.data('id');
$('div.oe_edit_actions').remove();
self.$dialog = new session.web.Dialog(this, {
destroy_on_close: false,
modal_size: 'small',
size: 'small',
title: _t('Edit Subscription of ') + $currentTarget.siblings('a').text(),
buttons: [
{ text: _t("Apply"), click: function() {