Flipped Logic
This commit is contained in:
+2
-2
@@ -307,10 +307,10 @@ function sendCMD(cmd) {
|
||||
var current_branch = output.substr(2, output.length - 3)
|
||||
if (current_branch === 'unstable') {
|
||||
document.getElementById("branch_name").innerHTML = "stable"
|
||||
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('master')")
|
||||
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('unstable')")
|
||||
} else {
|
||||
document.getElementById("branch_name").innerHTML = "unstable"
|
||||
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('unstable')")
|
||||
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('stable')")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user