diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /skins/common/metadata.js | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'skins/common/metadata.js')
-rw-r--r-- | skins/common/metadata.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/skins/common/metadata.js b/skins/common/metadata.js deleted file mode 100644 index 8fafc955..00000000 --- a/skins/common/metadata.js +++ /dev/null @@ -1,53 +0,0 @@ -// Exif metadata display for MediaWiki file uploads -// -// Add an expand/collapse link and collapse by default if set to -// (with JS disabled, user will see all items) -// -// attachMetadataToggle('mw_metadata', 'More...', 'Fewer...'); - -window.attachMetadataToggle = function( tableId, showText, hideText ) { - if ( document.createTextNode ) { - var box = document.getElementById( tableId ); - if ( !box ) { - return false; - } - - var tbody = box.getElementsByTagName('tbody')[0]; - - var row = document.createElement( 'tr' ); - - var col = document.createElement( 'td' ); - col.colSpan = 2; - - var link = document.createElement( 'a' ); - link.href = '#'; - - link.onclick = function() { - if ( box.className == 'mw_metadata collapsed' ) { - changeText( link, hideText ); - box.className = 'mw_metadata expanded'; - } else { - changeText( link, showText ); - box.className = 'mw_metadata collapsed'; - } - return false; - }; - - var text = document.createTextNode( hideText ); - - link.appendChild( text ); - col.appendChild( link ); - row.appendChild( col ); - tbody.appendChild( row ); - - // And collapse! - link.onclick(); - - return true; - } - return false; -}; - -$( document ).ready( function() { - attachMetadataToggle( 'mw_metadata', mediaWiki.msg( 'metadata-expand' ), mediaWiki.msg( 'metadata-collapse' ) ); -} ); |