option to scroll background tabs
This commit is contained in:
parent
3b7aac1d9d
commit
b9f6d929e8
@ -140,6 +140,7 @@
|
|||||||
updater: {
|
updater: {
|
||||||
checkbox: {
|
checkbox: {
|
||||||
'Scrolling': [false, 'Scroll updated posts into view. Only enabled at bottom of page.'],
|
'Scrolling': [false, 'Scroll updated posts into view. Only enabled at bottom of page.'],
|
||||||
|
'Scroll BG': [false, 'Scroll background tabs'],
|
||||||
'Verbose': [true, 'Show countdown timer, new post count'],
|
'Verbose': [true, 'Show countdown timer, new post count'],
|
||||||
'Auto Update': [true, 'Automatically fetch new posts']
|
'Auto Update': [true, 'Automatically fetch new posts']
|
||||||
},
|
},
|
||||||
@ -1678,12 +1679,16 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
var checkbox, checked, dialog, html, input, name, title, _i, _len, _ref;
|
var checkbox, checked, dialog, html, input, name, title, _i, _len, _ref;
|
||||||
if (conf['Scrolling']) {
|
if (conf['Scrolling']) {
|
||||||
$.bind(window, 'focus', (function() {
|
if (conf['Scroll BG']) {
|
||||||
return updater.focus = true;
|
updater.focus = true;
|
||||||
}));
|
} else {
|
||||||
$.bind(window, 'blur', (function() {
|
$.bind(window, 'focus', (function() {
|
||||||
return updater.focus = false;
|
return updater.focus = true;
|
||||||
}));
|
}));
|
||||||
|
$.bind(window, 'blur', (function() {
|
||||||
|
return updater.focus = false;
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
html = "<div class=move><span id=count></span> <span id=timer>-" + conf['Interval'] + "</span></div>";
|
html = "<div class=move><span id=count></span> <span id=timer>-" + conf['Interval'] + "</span></div>";
|
||||||
checkbox = config.updater.checkbox;
|
checkbox = config.updater.checkbox;
|
||||||
|
|||||||
@ -78,6 +78,7 @@ config =
|
|||||||
updater:
|
updater:
|
||||||
checkbox:
|
checkbox:
|
||||||
'Scrolling': [false, 'Scroll updated posts into view. Only enabled at bottom of page.']
|
'Scrolling': [false, 'Scroll updated posts into view. Only enabled at bottom of page.']
|
||||||
|
'Scroll BG': [false, 'Scroll background tabs']
|
||||||
'Verbose': [true, 'Show countdown timer, new post count']
|
'Verbose': [true, 'Show countdown timer, new post count']
|
||||||
'Auto Update': [true, 'Automatically fetch new posts']
|
'Auto Update': [true, 'Automatically fetch new posts']
|
||||||
'Interval': 30
|
'Interval': 30
|
||||||
@ -1376,8 +1377,11 @@ threadHiding =
|
|||||||
updater =
|
updater =
|
||||||
init: ->
|
init: ->
|
||||||
if conf['Scrolling']
|
if conf['Scrolling']
|
||||||
$.bind window, 'focus', (-> updater.focus = true)
|
if conf['Scroll BG']
|
||||||
$.bind window, 'blur', (-> updater.focus = false)
|
updater.focus = true
|
||||||
|
else
|
||||||
|
$.bind window, 'focus', (-> updater.focus = true)
|
||||||
|
$.bind window, 'blur', (-> updater.focus = false)
|
||||||
html = "<div class=move><span id=count></span> <span id=timer>-#{conf['Interval']}</span></div>"
|
html = "<div class=move><span id=count></span> <span id=timer>-#{conf['Interval']}</span></div>"
|
||||||
{checkbox} = config.updater
|
{checkbox} = config.updater
|
||||||
for name of checkbox
|
for name of checkbox
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user