Change status values

This commit is contained in:
dave 2014-08-26 16:28:55 -07:00
parent 276c24b0f7
commit 75d09c9680
1 changed files with 3 additions and 3 deletions

View File

@ -88,11 +88,11 @@ var ui = {
streamid = $(this).closest(".panel").data("streamid");
var newStatus = null
if( $(this).hasClass("btn-status-ok") ) {
newStatus = 1
newStatus = 0
} else if( $(this).hasClass("btn-status-stop") ) {
newStatus = 0
newStatus = 1
} else {
newStatus = 0
newStatus = 1
}
$.ajax("/api/changeStatus", {dataType:"json", data:{id:streamid, status:newStatus},error:function(){
console.log("Couldn't save! changeStatus");