Facebook Social Icon Twitter Social Icon YouTube Social Icon

Difference between revisions of "MediaWiki:Common.js"

From M.Eng. René Schwarz, Bremen/Merseburg
Jump to: navigation, search
Line 29: Line 29:
  
 
//================================================================================
 
//================================================================================
−
$(function() {
 
−
  $( ".accordion" ).accordion({
 
−
      collapsible: true,
 
−
      active: false,
 
−
      animated: 'bounceslide',
 
−
      autoHeight: false });
 
−
});
 

Revision as of 12:48, 27 June 2011

/* Das folgende JavaScript wird für alle Benutzer geladen. */

//================================================================================
//*** force the loading of another JavaScript file (Kopie von [[Commons:Common.js]])
// Local Maintainer: [[Commons:User:Dschwen]]

function includePage(name) {
    document.write('<script type="text/javascript" src="' + wgScript + '?title='
        + name + '&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');    // smaxage=3600
}


//================================================================================
//*** import Onlyifuploading-functions
// SEE ALSO [[MediaWiki:Onlyifuploading.js]]
 
if (wgCanonicalSpecialPageName == "Upload") {
    includePage("MediaWiki:Onlyifuploading.js");
    includePage("MediaWiki:Onlyifediting.js");
}
 
//================================================================================
//*** import Onlyifediting-functions
// SEE ALSO [[MediaWiki:Onlyifediting.js]]
 
if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0) {
    includePage("MediaWiki:Onlyifediting.js");
}

//================================================================================