Start implementing requirejs
[gitphp.git] / js / lang.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * GitPHP Javascript language selector
 * 
 * Changes the language as soon as it's selected,
 * rather than requiring a submit
 * 
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2010 Christopher Han
 * @package GitPHP
 */
 
function initLangSelector() {
        $("#selLang").change(function() {
                $("#frmLangSelect").submit();
        });
        $("#btnLangSet").remove();
};
 
$(document).ready(function() {
        initLangSelector();
});
 
comments