openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

jquery-global.js (1261B)


      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