MediaWiki:Common.js: Difference between revisions

mNo edit summary
mNo edit summary
Line 4: Line 4:




if (mw.config.get('wgUserName') != "ST") {
//if (mw.config.get('wgUserName') != "ST") {
 
if (jQuery.inArray("sysop", mw.config.get('wgUserGroups'))) > -1 {
 
 
     //Disable cut copy paste
     //Disable cut copy paste
     $('body').bind('cut copy paste', function (e) {
     $('body').bind('cut copy paste', function (e) {
Line 19: Line 23:
//jQuery.inArray( "John", arr )
//jQuery.inArray( "John", arr )


alert("Hi " +  mw.config.get('wgUserName') + " " +  jQuery.inArray( "sysop", mw.config.get('wgUserGroups')) ) ;
alert("Hi " +  mw.config.get('wgUserName') + " "   ) ;