Created
September 26, 2015 12:25
-
-
Save anonymous/35ad85d54608afb4ad56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var settid = "sitelocked"; | |
var status = false; | |
var data = { "sitelocked":true, "officelocked":false, "paging":20 }; | |
if(status === true){ | |
console.log('ITS TRUE'); | |
data[settid] = status; | |
}else if(status === false){ | |
console.log('ITS FALSE'); | |
data[settid] = status; | |
} | |
console.log(data); | |
alert(JSON.stringify(data)); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment