Proof of concept language database database

Change-Id: I5d6b9ff4ce46c8e2d48bf56ab08f093287672467
This commit is contained in:
Niklas Laxström
2012-06-22 09:53:12 +00:00
committed by Santhosh Thottingal
parent 2fd23fe2e0
commit 16d2b1c33d
7 changed files with 1495 additions and 8 deletions

View File

@@ -49,9 +49,17 @@
window.location.href = uri.toString();
}
} );
$( '.uls-region' ).live( 'click', function () {
$( '.uls-region' ).live( 'click', function ( e ) {
var id = $( this ).attr( 'id' );
var active = $( this ).hasClass( 'active' );
$( this ).parent().find( '.uls-region' ).removeClass( 'active' );
$( this ).addClass( 'active' );
if ( active ) {
$( '.uls-language-list li' ).show();
} else {
$( this ).addClass( 'active' );
$( '.uls-language-list li' ).not( '.' + id ).hide();
$( '.uls-language-list li.' + id ).show();
}
} );
// trigger a search for all languages.
$( "#languagefilter" ).autocomplete( "search" );