Permalink
Browse files

Merge branch 'master' of github.com:sajal/Cloudfront-Purge-Tool

  • Loading branch information...
2 parents d97447f + 863a50b commit 629a941d30f25cf85c60cc39904c0bd7c2518b56 @aaronpeters aaronpeters committed Jan 20, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 script.js
View
@@ -89,7 +89,9 @@ var updateinvaldetails = function(obj){
}
paths = patharr.join(",")
}
-
+ if (status == "InProgress"){
+ status = "In progress";
+ }
var inval = $("#invaldetails")[0];
inval.innerHTML = '<h3 class="ui-widget-header ui-corner-all">Purge Details</h3>Id: ' + id + "<br>Created : " + created + "<br>Files: " + paths + " <br>Status: " + status
$( "#invaldetails" ).effect( "slide", {}, 500 );
@@ -179,7 +181,12 @@ var updateinvalidations = function(invals){
var st = document.createElement('div');
st.className = invals[i].Status["#text"];
//box.classList.add(invals[i].Status["#text"]);
- st.appendChild(document.createTextNode(invals[i].Status["#text"]));
+ var status = invals[i].Status["#text"];
+ if (status == "InProgress"){
+ status = "In progress";
+ }
+
+ st.appendChild(document.createTextNode(status));
box.appendChild(el);
box.appendChild(st);
//box.onclick = invaldetails;

0 comments on commit 629a941

Please sign in to comment.