Update perms BG color etc on change

This commit is contained in:
Matt Pass
2014-11-07 21:02:11 +00:00
parent defc8d4ffa
commit 56d1f60675
2 changed files with 22 additions and 18 deletions

View File

@@ -1459,6 +1459,9 @@ var ICEcoder = {
// Get short URL for our file and get our target elem based on this
shortURL = top.ICEcoder.selectedFiles[top.ICEcoder.selectedFiles.length-1].replace(/\|/g,"/");
targetElem = top.get('filesFrame').contentWindow.document.getElementById(shortURL.replace(/\//g,"|")+"_perms");
// Set the color for the perms
targetElem.style.background = perms == 777 ? '#800' : 'none';
targetElem.style.color = perms == 777 ? '#eee' : '#888';
// Set the new perms
targetElem.innerHTML = perms;
}