stats css tweaks
This commit is contained in:
parent
86fc2b9ce7
commit
0782138c2e
@ -1970,14 +1970,16 @@
|
|||||||
};
|
};
|
||||||
threadStats = {
|
threadStats = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var html;
|
var dialog, html;
|
||||||
threadStats.replies = 0;
|
threadStats.replies = 0;
|
||||||
threadStats.images = $('.op img[md5]') ? 1 : 0;
|
threadStats.images = $('.op img[md5]') ? 1 : 0;
|
||||||
html = "<div class=move>Replies: <span id=rcount>" + threadStats.replies + "</span> Images: <span id=icount>" + threadStats.images + "</span></div>";
|
html = "<div class=move>Replies: <span id=rcount>" + threadStats.replies + "</span> Images: <span id=icount>" + threadStats.images + "</span></div>";
|
||||||
$.append(d.body, ui.dialog('stats', {
|
dialog = ui.dialog('stats', {
|
||||||
bottom: '0px',
|
bottom: '0px',
|
||||||
left: '0px'
|
left: '0px'
|
||||||
}, html));
|
}, html);
|
||||||
|
dialog.className = 'dialog';
|
||||||
|
$.append(d.body, dialog);
|
||||||
return g.callbacks.push(threadStats.node);
|
return g.callbacks.push(threadStats.node);
|
||||||
},
|
},
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
@ -2631,6 +2633,7 @@
|
|||||||
}\
|
}\
|
||||||
\
|
\
|
||||||
#stats {\
|
#stats {\
|
||||||
|
border: none;\
|
||||||
position: fixed;\
|
position: fixed;\
|
||||||
}\
|
}\
|
||||||
\
|
\
|
||||||
|
|||||||
@ -1550,7 +1550,9 @@ threadStats =
|
|||||||
threadStats.replies = 0
|
threadStats.replies = 0
|
||||||
threadStats.images = if $ '.op img[md5]' then 1 else 0
|
threadStats.images = if $ '.op img[md5]' then 1 else 0
|
||||||
html = "<div class=move>Replies: <span id=rcount>#{threadStats.replies}</span> Images: <span id=icount>#{threadStats.images}</span></div>"
|
html = "<div class=move>Replies: <span id=rcount>#{threadStats.replies}</span> Images: <span id=icount>#{threadStats.images}</span></div>"
|
||||||
$.append d.body, (ui.dialog 'stats', bottom: '0px', left: '0px', html)
|
dialog = ui.dialog 'stats', bottom: '0px', left: '0px', html
|
||||||
|
dialog.className = 'dialog'
|
||||||
|
$.append d.body, dialog
|
||||||
g.callbacks.push threadStats.node
|
g.callbacks.push threadStats.node
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if root.className
|
return if root.className
|
||||||
@ -2065,6 +2067,7 @@ main =
|
|||||||
}
|
}
|
||||||
|
|
||||||
#stats {
|
#stats {
|
||||||
|
border: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user