Skip to content
Browse files

settings.html aggiornato

  • Loading branch information...
1 parent 104cbb3 commit f58878aaee93b8917d75ba803babdc7fff8a7f8b Marco Rondini committed Mar 3, 2012
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;

0 comments on commit f58878a

Please sign in to comment.
Something went wrong with that request. Please try again.