Add not-allowed cursor for entities in file picker which are not allowed to select
This commit is contained in:
committed by
Sebastiaan Janssen
parent
a0c9c98f81
commit
62d2963501
@@ -250,6 +250,7 @@
|
||||
filter: function (i) {
|
||||
return !(i.name.indexOf(".jpg") !== -1 || i.name.indexOf(".jpeg") !== -1 || i.name.indexOf(".png") !== -1 || i.name.indexOf(".svg") !== -1 || i.name.indexOf(".webp") !== -1 || i.name.indexOf(".gif") !== -1);
|
||||
},
|
||||
filterCssClass: "not-allowed",
|
||||
select: function (file) {
|
||||
const id = decodeURIComponent(file.id.replace(/\+/g, " "));
|
||||
block.thumbnail = "~/" + id;
|
||||
|
||||
Reference in New Issue
Block a user