Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

settings.html aggiornato

  • Loading branch information...
commit f58878aaee93b8917d75ba803babdc7fff8a7f8b 1 parent 104cbb3
Marco Rondini authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 web/views/settings.html
View
8 web/views/settings.html
@@ -37,7 +37,7 @@
"user": "",
"pass": ""
},
- "streams": []
+ "streams": {}
}
};
@@ -65,9 +65,7 @@
}
$(".stream_check").each(function(index){
- tmp_stream = {};
- tmp_stream[$(this).val()] = ( $(this).attr('checked') ) ? true : false;
- tmp_conf.globals.streams.push(tmp_stream);
+ tmp_conf.globals.streams[$(this).val()] = { enabled : ( $(this).attr('checked') ) ? true : false };
});
@@ -84,7 +82,7 @@
}
$(document).ready(function(){
-
+
var conf = <%- JSON.stringify(conf) %>;
var last = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.