diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-12-14 18:24:34 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-12-14 18:24:34 +0100 |
| commit | 7991d820f528f95cfabfefcf2f9a7738bfc061ab (patch) | |
| tree | 5ea0bfafcc9aefddd38f9c01b770b5334743e64a /addons/web/static/src/js/views.js | |
| parent | 99ffc0507f791eb33074a1789f6d47e0bc3226d0 (diff) | |
| parent | d1ddc1ee7824dd571ac564359883198a73a747b5 (diff) | |
[MERGE] trunk
bzr revid: al@openerp.com-20111214172434-u2i6im40bviq229q
Diffstat (limited to 'addons/web/static/src/js/views.js')
| -rw-r--r-- | addons/web/static/src/js/views.js | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index af0f0f47aba..e2bca4cc674 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -158,6 +158,7 @@ session.web.ActionManager = session.web.Widget.extend({ }, ir_actions_client: function (action) { this.content_stop(); + this.dialog_stop(); var ClientWidget = session.web.client_actions.get_object(action.tag); (this.client_widget = new ClientWidget(this, action.params)).appendTo(this); }, @@ -1064,19 +1065,26 @@ session.web.View = session.web.Widget.extend(/** @lends session.web.View# */{ this.embedded_view = embedded_view; this.options.sidebar = false; }, + do_show: function () { + this.$element.show(); + }, + do_hide: function () { + this.$element.hide(); + }, /** * Switches to a specific view type * * @param {String} view view type to switch to */ - do_switch_view: function(view) { }, + do_switch_view: function(view) { + }, /** * Cancels the switch to the current view, switches to the previous one */ - do_prev_view: function () { }, + do_prev_view: function () { + }, do_search: function(view) { }, - set_common_sidebar_sections: function(sidebar) { sidebar.add_default_sections(); }, @@ -1145,13 +1153,13 @@ session.web.View = session.web.Widget.extend(/** @lends session.web.View# */{ sidebar_context: function () { return $.Deferred().resolve({}).promise(); }, - do_push_state: function(state) { if (this.wiget_parent && this.widget_parent.do_push_state) { this.widget_parent.do_push_state(state); } }, - + do_load_state: function(state) { + } }); session.web.json_node_to_xml = function(node, human_readable, indent) { |
