File modules/cms/ui/themes/default/script/jquery-global.min.js
Last commit: Tue Mar 15 21:01:41 2022 +0100 dankert Fix: Plugin 'toogleAttr' must get all arguments.
1 import query, {OQuery} from './Oquery.min.js'; 2 import autoheight from './plugin/jquery-plugin-orAutoheight.min.js'; 3 import button from './plugin/jquery-plugin-orButton.min.js'; 4 import linkify from './plugin/jquery-plugin-orLinkify.min.js'; 5 import search from './plugin/jquery-plugin-orSearch.min.js'; 6 import tree from './plugin/jquery-plugin-orTree.min.js'; 7 import toggleAttr from './plugin/jquery-plugin-toggleAttr.min.js'; 8 query.createQuery = (nodeList) => new CMSQuery(nodeList); 9 export default query; 10 class CMSQuery extends OQuery { 11 createNew(nodeList) { 12 return new CMSQuery(nodeList); 13 } 14 static classPrefix = 'or-'; 15 addClass( styleClass ) { 16 return super.addClass( CMSQuery.classPrefix + styleClass ) 17 } 18 removeClass( styleClass ) { 19 return super.removeClass( CMSQuery.classPrefix + styleClass ) 20 } 21 hasClass( styleClass ) { 22 return super.hasClass( CMSQuery.classPrefix + styleClass ) 23 } 24 orAutoheight() { 25 return autoheight.apply(this,arguments); 26 }; 27 orButton() { 28 return button.apply(this,arguments); 29 }; 30 orLinkify() { 31 return linkify.apply(this,arguments); 32 }; 33 orSearch() { 34 return search.apply(this,arguments); 35 }; 36 orTree() { 37 return tree.apply(this,arguments); 38 }; 39 toggleAttr() { 40 return toggleAttr.apply(this,arguments); 41 }; 42 }
Downloadmodules/cms/ui/themes/default/script/jquery-global.min.js
History Tue, 15 Mar 2022 21:01:41 +0100 dankert Fix: Plugin 'toogleAttr' must get all arguments. Sat, 18 Dec 2021 03:47:23 +0100 dankert New: Every ES6-Module should have a minified version for performance reasons. Bad: The Minifier "Jsqueeze" is unable to minify ES6-modules, so we had to implement a simple JS-Minifier which strips out all comments.