summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-07-31 14:53:06 +0200
committerChristophe Simonis <chs@odoo.com>2017-07-31 14:53:06 +0200
commitf46a393602017602e755d7a2c1d1a050629637a5 (patch)
treeecdcf630216ddf64b471883794236d79503b2328 /addons/web/static/src/js
parent4d5ff6401cabd5a1c86cb15ec9189c8c29620439 (diff)
parent09d698d05fa338e8c71e62a43c092b561f670fc0 (diff)
[MERGE] forward port branch saas-16 up to 09d698d05fa
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/calendar/calendar_renderer.js3
-rw-r--r--addons/web/static/src/js/views/form/form_renderer.js10
2 files changed, 8 insertions, 5 deletions
diff --git a/addons/web/static/src/js/views/calendar/calendar_renderer.js b/addons/web/static/src/js/views/calendar/calendar_renderer.js
index b61236131c6..4f5719063ff 100644
--- a/addons/web/static/src/js/views/calendar/calendar_renderer.js
+++ b/addons/web/static/src/js/views/calendar/calendar_renderer.js
@@ -330,11 +330,12 @@ return AbstractRenderer.extend({
}
element.find('.fc-content .fc-time').text(display_hour);
},
- height: 'auto',
+ height: 'parent',
unselectAuto: false,
});
this.$calendar.fullCalendar(fc_options);
+ window.dispatchEvent(new Event('resize'));
},
/**
* Initialize the mini calendar in the sidebar
diff --git a/addons/web/static/src/js/views/form/form_renderer.js b/addons/web/static/src/js/views/form/form_renderer.js
index fe53bb6cf8a..3674046d5ea 100644
--- a/addons/web/static/src/js/views/form/form_renderer.js
+++ b/addons/web/static/src/js/views/form/form_renderer.js
@@ -114,18 +114,20 @@ var FormRenderer = BasicRenderer.extend({
});
},
/**
- * Disable stat buttons so that they can't be clicked anymore
+ * Disable statusbar buttons and stat buttons so that they can't be clicked anymore
*
*/
disableButtons: function() {
- this.$('.oe_button_box button').attr('disabled', true);
+ this.$('.o_statusbar_buttons button, .oe_button_box button')
+ .attr('disabled', true);
},
/**
- * Enable stat buttons so they can be clicked again
+ * Enable statusbar buttons and stat buttons so they can be clicked again
*
*/
enableButtons: function() {
- this.$('.oe_button_box button').removeAttr('disabled');
+ this.$('.o_statusbar_buttons button, .oe_button_box button')
+ .removeAttr('disabled');
},
/**
* returns the active tab pages for each notebook