mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing color on realtime spinner.
This commit is contained in:
parent
feee1d4ecf
commit
82b3276c62
4 changed files with 8 additions and 4 deletions
|
@ -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 |
BIN
media/img/reader/realtime_spinner_loading.gif
Normal file
BIN
media/img/reader/realtime_spinner_loading.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 B |
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue