mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_listview_range_select: Migration to 14.0
This commit is contained in:
committed by
Karl Southern
parent
48457a94e1
commit
e089cdcbd2
@@ -6,10 +6,10 @@
|
||||
"summary": """
|
||||
Enables selecting a range of records using the shift key
|
||||
""",
|
||||
"version": "13.0.1.0.0",
|
||||
"version": "14.0.1.0.0",
|
||||
"category": "Web",
|
||||
"author": "Onestein, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/oca/web",
|
||||
"website": "https://github.com/OCA/web",
|
||||
"license": "AGPL-3",
|
||||
"depends": ["web"],
|
||||
"data": ["templates/assets.xml"],
|
||||
|
||||
@@ -31,9 +31,7 @@ odoo.define("web_listview_range_select", function(require) {
|
||||
end = null;
|
||||
|
||||
this.$el.find("td.o_list_record_selector input").each(function (i, el) {
|
||||
var id = $(el)
|
||||
.closest("tr")
|
||||
.data("id");
|
||||
var id = $(el).closest("tr").data("id");
|
||||
var checked = self._range_history.indexOf(id) !== -1;
|
||||
if (checked && $(el).is(":checked")) {
|
||||
if (start === null) {
|
||||
|
||||
Reference in New Issue
Block a user