MediaWiki:Common.js: Difference between revisions
From M.Eng. René Schwarz, Bremen/Merseburg
René Schwarz (talk | contribs) No edit summary |
René Schwarz (talk | contribs) No edit summary |
||
| Line 30: | Line 30: | ||
//================================================================================ | //================================================================================ | ||
$(function() { | $(function() { | ||
$( ".accordion" ).accordion({ | |||
collapsible: true, | |||
active: false, | |||
animated: 'bounceslide', | |||
autoHeight: false }); | |||
}); | }); | ||
Revision as of 21:07, 8 January 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");
}
//================================================================================
$(function() {
$( ".accordion" ).accordion({
collapsible: true,
active: false,
animated: 'bounceslide',
autoHeight: false });
});
Science