[FIX] web: keep nocontent tooltip in center
Before this commit: nocontent tooltip was not diplayed in center After this commit: nocontent tooltip will be displayed in center, toggle o_list_view class which should not be added if nocontent help is displayed, as there is no listview to display so remove o_list_view class task-2008371 closes odoo/odoo#34178 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
committed by
Mohammed Shekha
parent
d201a39357
commit
272b041e53
@@ -34,7 +34,6 @@ var FIELD_CLASSES = {
|
||||
};
|
||||
|
||||
var ListRenderer = BasicRenderer.extend({
|
||||
className: 'o_list_view',
|
||||
events: {
|
||||
"mousedown": "_onMouseDown",
|
||||
"click .o_optional_columns_dropdown .dropdown-item": "_onToggleOptionalColumn",
|
||||
@@ -894,6 +893,7 @@ var ListRenderer = BasicRenderer.extend({
|
||||
|
||||
// display the no content helper if there is no data to display
|
||||
var displayNoContentHelper = !this._hasContent() && !!this.noContentHelp;
|
||||
this.$el.toggleClass('o_list_view', !displayNoContentHelper);
|
||||
if (displayNoContentHelper) {
|
||||
// destroy the previously instantiated pagers, if any
|
||||
_.invoke(oldPagers, 'destroy');
|
||||
|
||||
Reference in New Issue
Block a user