Fix #101, and another bug with the options loading before the unread count.

This commit is contained in:
Nicolas Stepien 2012-01-08 21:50:39 +01:00
parent 9493421a9e
commit efd3fce63c
3 changed files with 10 additions and 5 deletions

View File

@ -1233,8 +1233,8 @@
$.on(a, 'click', options.dialog);
$.replace(home, a);
if (!$.get('firstrun')) {
options.dialog();
return $.set('firstrun', true);
$.set('firstrun', true);
return options.dialog();
}
},
dialog: function() {
@ -2741,11 +2741,11 @@
unread = {
init: function() {
unread.replies = [];
d.title = '(0) ' + d.title;
$.on(window, 'scroll', unread.scroll);
return g.callbacks.push(unread.node);
},
replies: [],
node: function(root) {
if (root.hidden || root.className) return;
unread.replies.push(root);
@ -3284,6 +3284,7 @@
bottom: 0;\
text-align: center;\
background: rgba(0,0,0,.5);\
z-index: 1;\
}\
#overlay::after {\
content: "";\

View File

@ -1,4 +1,6 @@
master
- mayhem
fix options popping up everytime a page loads
2.24.1
- mayhem

View File

@ -897,8 +897,8 @@ options =
$.on a, 'click', options.dialog
$.replace home, a
unless $.get 'firstrun'
options.dialog()
$.set 'firstrun', true
options.dialog()
dialog: ->
dialog = ui.dialog 'options', '', '
@ -2134,11 +2134,12 @@ threadStats =
unread =
init: ->
unread.replies = []
d.title = '(0) ' + d.title
$.on window, 'scroll', unread.scroll
g.callbacks.push unread.node
replies: []
node: (root) ->
return if root.hidden or root.className
unread.replies.push root
@ -2640,6 +2641,7 @@ Main =
bottom: 0;
text-align: center;
background: rgba(0,0,0,.5);
z-index: 1;
}
#overlay::after {
content: "";