Permalink
Browse files

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

  • Loading branch information...
2 parents 0dde822 + c823edc commit f8780e4ecf70ec36aab32f0a9886f4262ba93ff7 @aaronpeters aaronpeters committed Jan 19, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −0 popup.html
  2. +3 −1 script.js
View
@@ -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
@@ -140,13 +140,16 @@ 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>';
+
});
}
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) {

0 comments on commit f8780e4

Please sign in to comment.