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://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/20px-Symbol_confirmed.svg.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://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/20px-Symbol_keep_vote.svg.png',          action: {            type: 'encapsulate',            options: {               pre: ""            }          }        }      }    });

}); }

/* */