diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2014-04-10 17:19:40 +0200 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2014-04-10 17:19:40 +0200 |
| commit | 049539809d4d1e4d37eac4b59d08d10c39c731f7 (patch) | |
| tree | ad6a90603ac20263f4632aeb2605662d495f4618 /addons/web_view_editor/static/src | |
| parent | 964e94f8a800661020af8082c719b19c4cdddd86 (diff) | |
[FIX]modal strict to bootstrap: no resize and only use 3 size, large-medium-small instead of changing width of modal
bzr revid: csn@openerp.com-20140410151940-w0m1ljjqgo0eysgp
Diffstat (limited to 'addons/web_view_editor/static/src')
| -rw-r--r-- | addons/web_view_editor/static/src/js/view_editor.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/web_view_editor/static/src/js/view_editor.js b/addons/web_view_editor/static/src/js/view_editor.js index 69e9a3080b7..6fb82bd41c1 100644 --- a/addons/web_view_editor/static/src/js/view_editor.js +++ b/addons/web_view_editor/static/src/js/view_editor.js @@ -58,7 +58,6 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({ }; this.view_edit_dialog = new instance.web.Dialog(this, { title: action_title, - 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(); }}, @@ -376,7 +375,6 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({ this.one_object = one_object; this.edit_xml_dialog = new instance.web.Dialog(this, { title: _.str.sprintf(_t("View Editor %d - %s"), self.main_view_id, self.model), - height: '90%', buttons: [ {text: _t("Inherited View"), click: function(){ var selected_row = self.edit_xml_dialog.$el.find('.ui-selected'); @@ -829,7 +827,7 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({ var self = this; this.edit_node_dialog = new instance.web.Dialog(this,{ title: _t("Properties"), - width: 450, + modal_size: 'medium', buttons: [ {text: _t("Update"), click: function () { var warn = false, update_values = []; @@ -955,7 +953,7 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({ this.add_widget = []; this.add_node_dialog = new instance.web.Dialog(this,{ title: _t("Properties"), - width: 450, + modal_size: 'medium', buttons: [ {text: _t("Update"), click: function() { var check_add_node = true, values = {}; |
