wire/modules/LanguageSupport/LanguageTabs.js
/**
 * Hide all language tab inputs except for default
 * 
 * For cases where all inputs are shown rather than tabs (like page name).
 * 
 */
Hide all language tab inputs except for default

For cases where all inputs are shown rather than tabs (like page name).
Hide all language tab inputs except for default For cases where all inputs are shown rather than tabs ( like page name ) .
function hideLanguageTabs() {
	$(".InputfieldContent").each(function() {
		var n = 0;
		$(this).children('.LanguageSupport').each(function() {
			if(++n == 1) {
				$(this).closest('.Inputfield').addClass('hadLanguageSupport');
				return;
			}
			$(this).addClass('langTabsHidden');
		});
	});
	var $tab = $(".langTabs").find("li:eq(0)");
	var cfg = ProcessWire.config.LanguageTabs;
	if(cfg.liActiveClass && !$tab.hasClass(cfg.liActiveClass)) $tab.find('a').click();
	$(".langTabsToggle, .LanguageSupportLabel:visible, .langTabs > ul").addClass('langTabsHidden');
	$(".hasLangTabs").removeClass("hasLangTabs").addClass("hadLangTabs");
}
function hideLanguageTabs ( ) { $ ( ".InputfieldContent" ) . each ( function ( ) { var n = 0 ; $ ( this ) . children ( '.LanguageSupport' ) . each ( function ( ) { if ( ++ n == 1 ) { $ ( this ) . closest ( '.Inputfield' ) . addClass ( 'hadLanguageSupport' ) ; return ; } $ ( this ) . addClass ( 'langTabsHidden' ) ; } ) ; } ) ; var $tab = $ ( ".langTabs" ) . find ( "li:eq(0)" ) ; var cfg = ProcessWire . config . LanguageTabs ; if ( cfg . liActiveClass && ! $tab . hasClass ( cfg . liActiveClass ) ) $tab . find ( 'a' ) . click ( ) ; $ ( ".langTabsToggle, .LanguageSupportLabel:visible, .langTabs > ul" ) . addClass ( 'langTabsHidden' ) ; $ ( ".hasLangTabs" ) . removeClass ( "hasLangTabs" ) . addClass ( "hadLangTabs" ) ; }
Hide all language tab inputs except for default
Hide all language tab inputs except for default
// make sure first tab is clicked // hide the tab toggler