summaryrefslogtreecommitdiff
path: root/addons/web_planner/static/src/js/web_planner_backend.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2015-08-25 13:52:41 +0200
committerSimon Lejeune <sle@openerp.com>2015-08-26 14:53:00 +0200
commit5c374313f67e02ce4f35e20677056ab12d2d4c3e (patch)
tree90862eb788b8709eccff186f3c5d0e2bc9eb180e /addons/web_planner/static/src/js/web_planner_backend.js
parent1e4e1644a96de0d1d29fc765f8ba4083afc36581 (diff)
[REF] planner: back again in a modal
fp's request
Diffstat (limited to 'addons/web_planner/static/src/js/web_planner_backend.js')
-rw-r--r--addons/web_planner/static/src/js/web_planner_backend.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/addons/web_planner/static/src/js/web_planner_backend.js b/addons/web_planner/static/src/js/web_planner_backend.js
index c6126cf5db3..4bf467364ad 100644
--- a/addons/web_planner/static/src/js/web_planner_backend.js
+++ b/addons/web_planner/static/src/js/web_planner_backend.js
@@ -52,19 +52,23 @@ var PlannerLauncher = Widget.extend({
this.need_reflow = true;
} else {
this.do_hide();
- this.hide_dialog();
this.need_reflow = true;
}
if (this.need_reflow) {
core.bus.trigger('resize');
this.need_reflow = false;
}
+
+ if (this.dialog) {
+ this.dialog.$el.modal('hide');
+ }
},
setup: function(planner){
var self = this;
this.planner = planner;
if (this.dialog) {
+ this.dialog.$el.modal('hide');
this.dialog.destroy();
}
this.dialog = new PlannerDialog(this, planner);
@@ -84,13 +88,8 @@ var PlannerLauncher = Widget.extend({
this.do_show();
this.$(".progress-bar").css('width', percent+"%");
},
- hide_dialog: function() {
- if (this.dialog) {
- this.dialog.do_hide();
- }
- },
toggle_dialog: function() {
- this.dialog.do_toggle();
+ this.dialog.$el.modal('toggle');
}
});