summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_editor.js
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-12-21 14:43:06 +0100
committerFabien Meghazi <fme@openerp.com>2011-12-21 14:43:06 +0100
commit41cd88bfad1e61f244295fa3a2ac9e2abf01a100 (patch)
treecfa3f5e833affd6435cb90ce6f84e580833915a3 /addons/web/static/src/js/view_editor.js
parent61b780a9a887d130dd9b772c8639fea064b7a605 (diff)
[FIX] Reworked dialogs
lp bug: https://launchpad.net/bugs/892248 fixed lp bug: https://launchpad.net/bugs/885507 fixed bzr revid: fme@openerp.com-20111221134306-k5w0g0oih3uvhy34
Diffstat (limited to 'addons/web/static/src/js/view_editor.js')
-rw-r--r--addons/web/static/src/js/view_editor.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/addons/web/static/src/js/view_editor.js b/addons/web/static/src/js/view_editor.js
index f925a6416eb..649f324744d 100644
--- a/addons/web/static/src/js/view_editor.js
+++ b/addons/web/static/src/js/view_editor.js
@@ -38,10 +38,8 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({
}
};
this.view_edit_dialog = new openerp.web.Dialog(this, {
- modal: true,
title: _t("ViewEditor"),
- width: 750,
- height: 500,
+ width: 850,
buttons: [
{text: _t("Create"), click: function() { self.on_create_view(); }},
{text: _t("Edit"), click: function() { self.xml_element_id = 0; self.get_arch(); }},
@@ -67,10 +65,7 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({
on_create_view: function() {
var self = this;
this.create_view_dialog = new openerp.web.Dialog(this, {
- modal: true,
title: _.str.sprintf(_t("Create a view (%s)"), self.model),
- width: 500,
- height: 400,
buttons: [
{text: _t("Save"), click: function () {
var view_values = {};
@@ -363,10 +358,8 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({
var self = this;
this.one_object = one_object;
this.edit_xml_dialog = new openerp.web.Dialog(this, {
- modal: true,
title: _.str.sprintf(_t("View Editor %d - %s"), self.main_view_id, self.model),
- width: 750,
- height: 500,
+ height: '90%',
buttons: [
{text: _t("Preview"), click: function() {
var action = {
@@ -752,10 +745,8 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({
on_edit_node: function(properties){
var self = this;
this.edit_node_dialog = new openerp.web.Dialog(this,{
- modal: true,
title: _t("Properties"),
- width: 500,
- height: 400,
+ width: 450,
buttons: [
{text: _t("Update"), click: function () {
var warn = false, update_values = [];
@@ -879,10 +870,8 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({
{'name': 'position','selection': ['After','Before','Inside'], 'value': false, 'string': 'Position','type': 'selection'}];
this.add_widget = [];
this.add_node_dialog = new openerp.web.Dialog(this,{
- modal: true,
title: _t("Properties"),
width: 450,
- height: 190,
buttons: [
{text: _t("Update"), click: function() {
var check_add_node = true, values = {};