openrat-cms

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

jquery-global.min.js (1232B)


      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 }