summaryrefslogtreecommitdiff
path: root/web/kbn_assets/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/kbn_assets/app.js')
-rw-r--r--web/kbn_assets/app.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/kbn_assets/app.js b/web/kbn_assets/app.js
index 86504cd..0be801d 100644
--- a/web/kbn_assets/app.js
+++ b/web/kbn_assets/app.js
@@ -102,6 +102,15 @@ function removeClass(el, name) {
}
function indexInit() {
+ // language selector
+ var langSelect = document.getElementById('lang');
+ langSelect.addEventListener('change', function() {
+ var selectedLang = this.value;
+ document.cookie = "lang=" + selectedLang + ";path=/";
+ window.location.reload();
+ });
+
+ // camera blocks
var blocks = ['zones', 'list'];
for (var i = 0; i < blocks.length; i++) {
var button = ge('cam_'+blocks[i]+'_btn');