Skip to content

Commit

Permalink
Deploying version 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bradt committed Jan 19, 2015
1 parent 7a70197 commit 66765a5
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 92 deletions.
9 changes: 0 additions & 9 deletions .scrutinizer.yml

This file was deleted.

2 changes: 1 addition & 1 deletion assets/css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
if($changeBucket.length){
$changeBucket.on('click', function(e){
e.preventDefault();
$( '.updated' ).hide();
$( '.updated' ).not('.as3cf-notice').hide();
$('.as3cf-can-write-error').hide();
$('.as3cf-settings').removeClass('as3cf-has-bucket');
loadBuckets();
Expand Down Expand Up @@ -131,6 +131,8 @@
}

var bucket = this;
var previous_bucket = $('.as3cf-bucket-list a.selected' ).attr('data-bucket');

$('.as3cf-bucket-list a' ).removeClass('selected');
$(bucket).addClass('selected');

Expand All @@ -152,6 +154,8 @@
error: function(jqXHR, textStatus, errorThrown) {
$bucketList.removeClass('saving');
show_bucket_error( as3cf_i18n.save_bucket_error, errorThrown );
$('.as3cf-bucket-list a' ).removeClass('selected');
$( '.as3cf-bucket-list a[data-bucket="' + previous_bucket + '"]' ).addClass( 'selected' );
},
success: function(data, textStatus, jqXHR) {
$(bucket).find('.spinner').hide();
Expand All @@ -160,6 +164,8 @@
bucket_select( bucketName, data['region'], data['can_write'] );
} else {
show_bucket_error( as3cf_i18n.save_bucket_error, data['error'] );
$('.as3cf-bucket-list a' ).removeClass('selected');
$( '.as3cf-bucket-list a[data-bucket="' + previous_bucket + '"]' ).addClass( 'selected' );
}
}
});
Expand All @@ -180,7 +186,7 @@
$( '.as3cf-active-bucket' ).text( bucket );
$( '#as3cf-bucket' ).val( bucket );
$( '#as3cf-region' ).val( region );
$( '.updated' ).show();
$( '.updated' ).not('.as3cf-notice' ).show();
// check permission on bucket
if( can_write === false){
$('.as3cf-can-write-error').show();
Expand Down
Loading

0 comments on commit 66765a5

Please sign in to comment.