Fixing color on realtime spinner.

This commit is contained in:
Samuel Clay 2013-04-18 16:19:53 -07:00
parent feee1d4ecf
commit 82b3276c62
4 changed files with 8 additions and 4 deletions

View file

@ -4897,7 +4897,7 @@ form.opml_import_form input {
}
.NB-module .NB-module-content-account-realtime {
background: transparent url('/media/img/reader/realtime_spinner.gif') no-repeat 0 1px;
background: transparent url('/media/img/reader/realtime_spinner_loading.gif') no-repeat 0 1px;
font-size: 11px;
text-transform: uppercase;
color: #D8BD70;
@ -4907,6 +4907,9 @@ form.opml_import_form input {
height: 16px;
margin: 0 4px 0 0;
}
.NB-module .NB-module-content-account-realtime.NB-active {
background: transparent url('/media/img/reader/realtime_spinner.gif') no-repeat 0 1px;
}
.NB-module .NB-module-content-account-realtime.NB-error {
background: transparent url('/media/img/reader/realtime_spinner_error.gif') no-repeat 0 1px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

View file

@ -3871,7 +3871,7 @@
this.setup_feed_refresh();
// $('.NB-module-content-account-realtime-subtitle').html($.make('b', 'Updating in real-time'));
$('.NB-module-content-account-realtime').attr('title', 'Updating sites in real-time...').removeClass('NB-error');
$('.NB-module-content-account-realtime').attr('title', 'Updating sites in real-time...').removeClass('NB-error').addClass('NB-active');
}, this));
this.socket.removeAllListeners('feed:update');
@ -3910,13 +3910,14 @@
this.flags.feed_refreshing_in_realtime = false;
this.setup_feed_refresh();
// $('.NB-module-content-account-realtime-subtitle').html($.make('b', 'Updating every 60 sec'));
$('.NB-module-content-account-realtime').attr('title', 'Updating sites every ' + this.flags.refresh_interval + ' seconds...').addClass('NB-error');
$('.NB-module-content-account-realtime').attr('title', 'Updating sites every ' + this.flags.refresh_interval + ' seconds...').addClass('NB-error').removeClass('NB-active');
}, this));
this.socket.on('error', _.bind(function() {
NEWSBLUR.log(["Can't connect to real-time pubsub."]);
this.flags.feed_refreshing_in_realtime = false;
this.setup_feed_refresh();
// $('.NB-module-content-account-realtime-subtitle').html($.make('b', 'Updating every 60 sec'));
$('.NB-module-content-account-realtime').attr('title', 'Updating sites every ' + this.flags.refresh_interval + ' seconds...').addClass('NB-error');
$('.NB-module-content-account-realtime').attr('title', 'Updating sites every ' + this.flags.refresh_interval + ' seconds...').addClass('NB-error').removeClass('NB-active');
_.delay(_.bind(this.setup_socket_realtime_unread_counts, this), 60*1000);
}, this));
}