Show message when we can't save in demo mode

Alert user that we can't commit setting changes in demo mode
This commit is contained in:
Matt Pass
2013-06-21 22:00:27 +01:00
parent ba14dfdc46
commit 483ee12ccd

View File

@@ -243,7 +243,7 @@ var validatePasswords = function() {
}
</script>
<div class="update" id="updateButton" onClick="validatePasswords()">update</div>
<div class="update" id="updateButton" onClick="<?php echo $ICEcoder['demoMode'] ? "top.ICEcoder.message('Sorry, can\'t commit settings in demo mode')" : "validatePasswords()"; ?>">update</div>
</div>