Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 629a941d30f25cf85c60cc39904c0bd7c2518b56 2 parents d97447f + 863a50b
Aaron Peters authored January 20, 2012

Showing 1 changed file with 9 additions and 2 deletions. Show diff stats Hide diff stats

  1. 11  script.js
11  script.js
@@ -89,7 +89,9 @@ var updateinvaldetails = function(obj){
89 89
     }
90 90
     paths = patharr.join(",")
91 91
   }
92  
-  
  92
+  if (status == "InProgress"){
  93
+    status = "In progress";
  94
+  }
93 95
   var inval = $("#invaldetails")[0];
94 96
   inval.innerHTML = '<h3 class="ui-widget-header ui-corner-all">Purge Details</h3>Id: ' + id + "<br>Created : " + created + "<br>Files: " + paths + " <br>Status: " + status
95 97
   $( "#invaldetails" ).effect( "slide", {}, 500 );
@@ -179,7 +181,12 @@ var updateinvalidations = function(invals){
179 181
     var st = document.createElement('div');
180 182
     st.className = invals[i].Status["#text"];
181 183
     //box.classList.add(invals[i].Status["#text"]);
182  
-    st.appendChild(document.createTextNode(invals[i].Status["#text"]));
  184
+    var status = invals[i].Status["#text"];
  185
+    if (status == "InProgress"){
  186
+      status = "In progress";
  187
+    }
  188
+
  189
+    st.appendChild(document.createTextNode(status));
183 190
     box.appendChild(el);
184 191
     box.appendChild(st);
185 192
     //box.onclick = invaldetails;

0 notes on commit 629a941

Please sign in to comment.
Something went wrong with that request. Please try again.