mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] isort, prettier, black: JS lint in all affect modules
This commit is contained in:
@@ -61,13 +61,15 @@
|
||||
"click .o_kanban_mobile_tab": "_onMobileTabClicked",
|
||||
"click .o_kanban_mobile_add_column": "_onMobileQuickCreateClicked",
|
||||
}),
|
||||
ANIMATE: true, // Allows to disable animations for the tests
|
||||
// Allows to disable animations for the tests
|
||||
ANIMATE: true,
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
init: function () {
|
||||
this._super.apply(this, arguments);
|
||||
this.activeColumnIndex = 0; // Index of the currently displayed column
|
||||
// Index of the currently displayed column
|
||||
this.activeColumnIndex = 0;
|
||||
this._scrollPosition = null;
|
||||
},
|
||||
/**
|
||||
@@ -377,7 +379,8 @@
|
||||
db_id: column.db_id,
|
||||
onSuccess: () => self._layoutUpdate(animate),
|
||||
});
|
||||
} else {
|
||||
}
|
||||
if (column.data.isOpen) {
|
||||
this._layoutUpdate(animate);
|
||||
}
|
||||
return Promise.resolve();
|
||||
@@ -396,16 +399,19 @@
|
||||
_renderGrouped: function (fragment) {
|
||||
var self = this;
|
||||
var newFragment = document.createDocumentFragment();
|
||||
this._super.apply(this, [newFragment]);
|
||||
var fragment_change = [newFragment];
|
||||
this._super.apply(this, fragment_change);
|
||||
this.defs.push(
|
||||
Promise.all(this.defs).then(function () {
|
||||
var data = [];
|
||||
_.each(self.state.data, function (group) {
|
||||
if (!group.value) {
|
||||
group = _.extend({}, group, {value: _t("Undefined")});
|
||||
data.unshift(group);
|
||||
} else {
|
||||
data.push(group);
|
||||
var grp = group;
|
||||
if (!grp.value) {
|
||||
grp = _.extend({}, grp, {value: _t("Undefined")});
|
||||
data.unshift(grp);
|
||||
}
|
||||
if (grp.value) {
|
||||
data.push(grp);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -445,7 +451,7 @@
|
||||
* Retrieve the Jquery node (.o_kanban_group) for a list of a given widgets
|
||||
*
|
||||
* @private
|
||||
* @param widgets
|
||||
* @param {Object} widgets: ''
|
||||
* @returns {jQuery} the matching .o_kanban_group widgets
|
||||
*/
|
||||
_toNode: function (widgets) {
|
||||
@@ -462,8 +468,8 @@
|
||||
* Update the given column to the updated positions
|
||||
*
|
||||
* @private
|
||||
* @param $column The jquery column
|
||||
* @param cssProperties Use to update column
|
||||
* @param {Object} $column The jquery column
|
||||
* @param {Object} cssProperties Use to update column
|
||||
* @param {Boolean} [animate=false] set to true to animate
|
||||
* @returns {Promise}
|
||||
*/
|
||||
@@ -493,6 +499,7 @@
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {MouseEvent} event
|
||||
*/
|
||||
_onMobileQuickCreateClicked: function (event) {
|
||||
if (event) {
|
||||
|
||||
@@ -21,7 +21,6 @@ odoo.define("web_responsive", function (require) {
|
||||
const PatchableAttachmentViewer = patchMixin(AttachmentViewer);
|
||||
const ControlPanel = require("web.ControlPanel");
|
||||
const SearchPanel = require("web/static/src/js/views/search_panel.js");
|
||||
/* global owl */
|
||||
const {QWeb, Context} = owl;
|
||||
const {useState, useContext} = owl.hooks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user