Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f8780e4ecf70ec36aab32f0a9886f4262ba93ff7 2 parents 0dde822 + c823edc
@aaronpeters aaronpeters authored
Showing with 4 additions and 1 deletion.
  1. +1 −0  popup.html
  2. +3 −1 script.js
View
1  popup.html
@@ -63,6 +63,7 @@ <h3 class="ui-widget-header">Purge details</h3>
</div>
<div id="invalidations" class="column ui-widget-content" style="display:none">
+
</div>
</div>
View
4 script.js
@@ -140,6 +140,8 @@ var updatedistlist = function(dist){
id = ui.selected.getElementsByClassName("id")[0].innerHTML;
window.currentdist = id;
cfobj.getAllInvalidations(id, updateinvalidations);
+ document.getElementById("invalidations").innerHTML = '<span id="invallistspinner" >imagine me spinning</span>';
+
});
}
@@ -147,6 +149,7 @@ var updatedistlist = function(dist){
var updateinvalidations = function(invals){
console.log(invals);
var invalidations = document.getElementById("invalidations");
+ invalidations.style.display = "";
//remove all childrens if exists
if ( invalidations.hasChildNodes() ){
while ( invalidations.childNodes.length >= 1 ){
@@ -186,7 +189,6 @@ var updateinvalidations = function(invals){
}
}
- invalidations.style.display = "";
document.getElementById("newinval").style.display = "";
$( "#invallist" ).selectable();
$( "#invallist" ).bind( "selectableselected", function(event, ui) {
Please sign in to comment.
Something went wrong with that request. Please try again.