MediaWiki:Gadget-button-checked.js

/* */

/* ============== Gadget-check.js ================================= popis:      gadget adds buttons for checking an article 1) check article                       2) review article ================================================================== */

// check WikiEditor and inicialize buttons if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) { $( function {

// nnew section "Check article" $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {       'sections': {        'checkarticle': {          'type': 'toolbar',          'label': 'Check article'        }      }    });

// Nnew groups: "Check article", "Review article" $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {     'section': 'checkarticle',      'groups': {        'checkgroup': {          'label': 'Check article'        },        'reviewgroup': {          'label': 'Review article'        }      }    });

// button "Check article" $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {     'section': 'checkarticle',      'group': 'checkgroup',      'tools': {        'checkbutton': {          label: 'Check article by a teacher',          type: 'button',          icon: 'http://www.wikilectures.eu/images/2/2f/Symbol_kept_vote_20px.png',          action: {            type: 'encapsulate',            options: {              pre: ""            }          }        }      }     });

// new button "Review article" $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {     'section': 'checkarticle',      'group': 'reviewgroup',      'tools': {        'reviewbutton': {          label: 'Review article by a specialist',          type: 'button',          icon: 'http://www.wikilectures.eu/images/1/17/Symbol_review_20px.png',          action: {            type: 'encapsulate',            options: {               pre: ""            }          }        }      }    });

}); }

/* */