mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-10 15:26:06 +01:00
Reworked Admin JS with ES6
This commit is contained in:
4
themes/grav/app/utils/jquery-utils.js
vendored
Normal file
4
themes/grav/app/utils/jquery-utils.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import $ from 'jquery';
|
||||
|
||||
// jQuery no parents filter
|
||||
$.expr[':']['noparents'] = $.expr.createPseudo((text) => (element) => $(element).parents(text).length < 1);
|
||||
Reference in New Issue
Block a user