[IMP] web_planner: hide progressbar when full

This commit is contained in:
Valerie Pirenne
2015-07-08 10:58:38 +02:00
committed by David Monjoie
parent ebe0ff6781
commit d1e4e0d58d
2 changed files with 10 additions and 2 deletions
@@ -49,7 +49,6 @@ var PlannerLauncher = Widget.extend({
on_menu_clicked: function(id, $clicked_menu) {
var menu_id = $clicked_menu.parents('.oe_secondary_menu').data('menu-parent') || 0; // find top menu id
if (_.contains(_.keys(this.planner_apps), menu_id.toString())) {
this.$el.show();
this.setup(this.planner_apps[menu_id]);
this.need_reflow = true;
} else {
@@ -76,6 +75,12 @@ var PlannerLauncher = Widget.extend({
},
// event
update_parent_progress_bar: function(percent) {
if (percent == 100) {
this.$(".progress").hide();
} else {
this.$(".progress").show();
}
this.$el.show();
this.$(".progress-bar").css('width', percent+"%");
},
toggle_dialog: function() {
@@ -177,11 +177,14 @@
/**************** MENU PROGRESS BAR ****************/
#oe_main_menu_navbar.navbar {
.o_planner_systray {
width: 100px;
height: 13px;
margin: 10px 0 0 0;
div.o_planner_progress {
cursor: pointer;
.progress {
display: inline-block;
width: 85px;
}
}
.o_planner_progress {
div.progress {