blob: 73bef14a9d9c92d4e6ebd84a9581a3bbbbd434a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/**
* Created by robert on 9/29/15.
*/
(function(){
$("#gui_lang_select").on("change",function() {
var lang = $("#gui_lang_select").val();
if (lang in codeq.supportedLangs) {
codeq.log.debug("Changing lang to:" + lang);
codeq.comms.updateSettings({'lang': lang})
.then(function (data) {
if (data.code !== 0) throw new Error('Change language failed, code: ' + data.code + ', message: ' + data.message);
codeq.log.debug("success with settings");
codeq.setLang(lang);
})
.done();
}
})
})();
|