File modules/cms/ui/themes/default/script/jquery-global.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.js'; 2 3 import autoheight from './plugin/jquery-plugin-orAutoheight.js'; 4 import button from './plugin/jquery-plugin-orButton.js'; 5 import linkify from './plugin/jquery-plugin-orLinkify.js'; 6 import search from './plugin/jquery-plugin-orSearch.js'; 7 import tree from './plugin/jquery-plugin-orTree.js'; 8 import toggleAttr from './plugin/jquery-plugin-toggleAttr.js'; 9 10 query.createQuery = (nodeList) => new CMSQuery(nodeList); 11 12 export default query; 13 14 class CMSQuery extends OQuery { 15 16 createNew(nodeList) { 17 return new CMSQuery(nodeList); 18 } 19 20 static classPrefix = 'or-'; 21 22 addClass( styleClass ) { 23 return super.addClass( CMSQuery.classPrefix + styleClass ) 24 } 25 removeClass( styleClass ) { 26 return super.removeClass( CMSQuery.classPrefix + styleClass ) 27 } 28 hasClass( styleClass ) { 29 return super.hasClass( CMSQuery.classPrefix + styleClass ) 30 } 31 32 orAutoheight() { 33 return autoheight.apply(this,arguments); 34 }; 35 36 orButton() { 37 return button.apply(this,arguments); 38 }; 39 40 orLinkify() { 41 return linkify.apply(this,arguments); 42 }; 43 44 orSearch() { 45 return search.apply(this,arguments); 46 }; 47 48 orTree() { 49 return tree.apply(this,arguments); 50 }; 51 52 toggleAttr() { 53 return toggleAttr.apply(this,arguments); 54 }; 55 } 56 57
Downloadmodules/cms/ui/themes/default/script/jquery-global.js
History Tue, 15 Mar 2022 21:01:41 +0100 dankert Fix: Plugin 'toogleAttr' must get all arguments. Thu, 1 Apr 2021 22:53:24 +0200 Jan Dankert Fix: Search Thu, 1 Apr 2021 22:20:52 +0200 Jan Dankert Using subclasses for the "JQuery"-Plugins. Thu, 1 Apr 2021 01:01:54 +0200 Jan Dankert New: Some fixes for OQuery, our new selfmade light JQuery replacement. Now the UI is back again. Wed, 31 Mar 2021 01:52:57 +0200 Jan Dankert New: Replace JQuery with OQuery, a selfmade light JQuery replacement. Mon, 29 Mar 2021 01:06:08 +0200 Jan Dankert Removed common.js and moved the callbacks to the workbench module. Sat, 27 Mar 2021 05:14:11 +0100 Jan Dankert Refactoring: Converting all script files to ES6 modules (work in progress); removed jquery-ui (drag and drop will be replaced by HTML5, sortable by a small lib)