Fix #101, and another bug with the options loading before the unread count.
This commit is contained in:
parent
9493421a9e
commit
efd3fce63c
@ -1233,8 +1233,8 @@
|
|||||||
$.on(a, 'click', options.dialog);
|
$.on(a, 'click', options.dialog);
|
||||||
$.replace(home, a);
|
$.replace(home, a);
|
||||||
if (!$.get('firstrun')) {
|
if (!$.get('firstrun')) {
|
||||||
options.dialog();
|
$.set('firstrun', true);
|
||||||
return $.set('firstrun', true);
|
return options.dialog();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dialog: function() {
|
dialog: function() {
|
||||||
@ -2741,11 +2741,11 @@
|
|||||||
|
|
||||||
unread = {
|
unread = {
|
||||||
init: function() {
|
init: function() {
|
||||||
unread.replies = [];
|
|
||||||
d.title = '(0) ' + d.title;
|
d.title = '(0) ' + d.title;
|
||||||
$.on(window, 'scroll', unread.scroll);
|
$.on(window, 'scroll', unread.scroll);
|
||||||
return g.callbacks.push(unread.node);
|
return g.callbacks.push(unread.node);
|
||||||
},
|
},
|
||||||
|
replies: [],
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
if (root.hidden || root.className) return;
|
if (root.hidden || root.className) return;
|
||||||
unread.replies.push(root);
|
unread.replies.push(root);
|
||||||
@ -3284,6 +3284,7 @@
|
|||||||
bottom: 0;\
|
bottom: 0;\
|
||||||
text-align: center;\
|
text-align: center;\
|
||||||
background: rgba(0,0,0,.5);\
|
background: rgba(0,0,0,.5);\
|
||||||
|
z-index: 1;\
|
||||||
}\
|
}\
|
||||||
#overlay::after {\
|
#overlay::after {\
|
||||||
content: "";\
|
content: "";\
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- mayhem
|
||||||
|
fix options popping up everytime a page loads
|
||||||
|
|
||||||
2.24.1
|
2.24.1
|
||||||
- mayhem
|
- mayhem
|
||||||
|
|||||||
@ -897,8 +897,8 @@ options =
|
|||||||
$.on a, 'click', options.dialog
|
$.on a, 'click', options.dialog
|
||||||
$.replace home, a
|
$.replace home, a
|
||||||
unless $.get 'firstrun'
|
unless $.get 'firstrun'
|
||||||
options.dialog()
|
|
||||||
$.set 'firstrun', true
|
$.set 'firstrun', true
|
||||||
|
options.dialog()
|
||||||
|
|
||||||
dialog: ->
|
dialog: ->
|
||||||
dialog = ui.dialog 'options', '', '
|
dialog = ui.dialog 'options', '', '
|
||||||
@ -2134,11 +2134,12 @@ threadStats =
|
|||||||
|
|
||||||
unread =
|
unread =
|
||||||
init: ->
|
init: ->
|
||||||
unread.replies = []
|
|
||||||
d.title = '(0) ' + d.title
|
d.title = '(0) ' + d.title
|
||||||
$.on window, 'scroll', unread.scroll
|
$.on window, 'scroll', unread.scroll
|
||||||
g.callbacks.push unread.node
|
g.callbacks.push unread.node
|
||||||
|
|
||||||
|
replies: []
|
||||||
|
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if root.hidden or root.className
|
return if root.hidden or root.className
|
||||||
unread.replies.push root
|
unread.replies.push root
|
||||||
@ -2640,6 +2641,7 @@ Main =
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: rgba(0,0,0,.5);
|
background: rgba(0,0,0,.5);
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
#overlay::after {
|
#overlay::after {
|
||||||
content: "";
|
content: "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user