User:Φρύδια/common.js

importScript('User:Erutuon/addAutoCat.js');

mw.loader.using('oojs-ui').done(function {   $(function { var tables = $('.transposable'); if (tables.length > 0) { tables.replaceWith(function {				var indexLayout = new OO.ui.IndexLayout({ expanded: false, padded: false //framed: false });	   		$(this).find('div[id]').each(function(i) { var table = $(this); indexLayout.addTabPanels([	   				new OO.ui.TabPanelLayout(i, { label: table.attr('id'), scrollable: false, padded: false, content: [ table ] })	   			]);	    		});	    		return new OO.ui.PopupButtonWidget({ label: 'Full conjugation', popup: { align: 'forwards', content: [ new OO.ui.PanelLayout({							expanded: false,							scrollable: false,							content: [ indexLayout ]						}) ] }				}).$element;			}); }   }); });