Zum Inhalt springen

„Benutzer:Lustiger seth/vector.js“ – Versionsunterschied

aus Wikipedia, der freien Enzyklopädie
Inhalt gelöscht Inhalt hinzugefügt
igitt, nee, vielleicht besser so.
hmm, so?
Zeile 9: Zeile 9:
}
}
});
});
var $tabs = $j('#ca-move, #ca-delete').addClass('collapsible');
var $tabs = $j('#ca-move, #ca-delete, #ca-protect, #ca-unsigned').addClass('collapsible');
var $watch = $j('#p-views ul #ca-watch, #p-views ul #ca-unwatch');
var $watch = $j('#p-views ul #ca-watch, #p-views ul #ca-unwatch');
if ($watch.length) {
if ($watch.length) {

Version vom 5. Dezember 2010, 13:13 Uhr

importScript('user:lustiger_seth/monobook.js');

// show drop-down menu elements, see [[Wikipedia:Fragen_zur_Wikipedia/Archiv/2010/Woche_37#Vector]]
if (typeof $j != 'undefined' && skin == 'vector'){
	$j(function(){
		$j('#p-cactions li a').each(function(){
			if($j(this).children().length == 0){
				$j(this).wrapInner('<span />');
			}
		});
		var $tabs = $j('#ca-move, #ca-delete, #ca-protect, #ca-unsigned').addClass('collapsible');
		var $watch = $j('#p-views ul #ca-watch, #p-views ul #ca-unwatch');
		if ($watch.length) {
			$tabs.insertBefore($watch);
		} else {
			$tabs.appendTo($j('#p-views ul'));
		}
		$j.collapsibleTabs.handleResize();
	});
}