MediaWiki:Common.js

/* */ /* ######################################################################## */ /* ### JavaScript here is loaded for all users and all skins. ### */ /* ######################################################################## */

importScriptPage('AjaxRC/code.js', 'dev');

importScriptPage('CollapsibleEdittools/code.js', 'dev');

/** * Open chat in a new popup window */ $(".openchat a").click(function {  window.open('/wiki/Special:Chat', 'wikiachat', 'width=600,height=600,menubar=no,status=no,location=no,toolbar=no,scrollbars=no,resizable=yes');   return false; });

/** * Change the edit button to "Archived" on old forum discussions. * Page can still be edited by going via the edit tab on the history etc, or by * typing the edit address manually. * Original version by User:Spang, edited by User:Zelgadis87. * Only works on Oasis */ if(wgNamespaceNumber == 110) { // 110 = Forum namespace. var disableOldForumEdit = function { if( $('#old-forum-warning').length == 0 ) { return; }     if( skin == 'oasis' ) { $("#WikiaPageHeader .wikia-menu-button li a:first").html('Archived').removeAttr('href' ); $('#WikiaPageHeader .wikia-button').html('Archived').removeAttr('href'); return; }  }   addOnloadHook( disableOldForumEdit ); }

/* */