mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-17 19:29:28 +01:00
commit
4332956f3e
@ -28,10 +28,10 @@ watchlist.render = function(reset) {
|
|||||||
JSON.parse(localStorage.watchlist).forEach(function(e, i) {
|
JSON.parse(localStorage.watchlist).forEach(function(e, i) {
|
||||||
//look at line 69, that's what (e) is here.
|
//look at line 69, that's what (e) is here.
|
||||||
threads.push('<div class="watchlist-inner" id="watchlist-'+i+'">' +
|
threads.push('<div class="watchlist-inner" id="watchlist-'+i+'">' +
|
||||||
'<span>Board: '+e[0]+'</span> ' +
|
'<span>/'+e[0]+'/ - ' +
|
||||||
'<span>Thread: '+'<a href="'+e[3]+'">'+e[1]+'</a></span> ' +
|
'<a href="'+e[3]+'">'+e[1].replace("thread_", "Thread #")+'</a>' +
|
||||||
'<span>Replies: '+e[2]+'</span> ' +
|
' ('+e[2]+') </span>' +
|
||||||
'<a class="watchlist-remove">[Unwatch]</a>'+
|
'<a class="watchlist-remove">X</a>'+
|
||||||
'</div>');
|
'</div>');
|
||||||
});
|
});
|
||||||
if ($('#watchlist').length) {
|
if ($('#watchlist').length) {
|
||||||
@ -40,6 +40,7 @@ watchlist.render = function(reset) {
|
|||||||
$('#watchlist').append(threads.join(''));
|
$('#watchlist').append(threads.join(''));
|
||||||
} else {
|
} else {
|
||||||
//If the watchlist has not yet been rendered, create it.
|
//If the watchlist has not yet been rendered, create it.
|
||||||
|
var menuStyle = getComputedStyle($('.boardlist')[0]);
|
||||||
$('form[name="post"]').before(
|
$('form[name="post"]').before(
|
||||||
$('<div id="watchlist">'+
|
$('<div id="watchlist">'+
|
||||||
'<div class="watchlist-controls">'+
|
'<div class="watchlist-controls">'+
|
||||||
@ -47,10 +48,7 @@ watchlist.render = function(reset) {
|
|||||||
'<span><a id="clearGhosts">[Clear Ghosts]</a></span>'+
|
'<span><a id="clearGhosts">[Clear Ghosts]</a></span>'+
|
||||||
'</div>'+
|
'</div>'+
|
||||||
threads.join('')+
|
threads.join('')+
|
||||||
'</div>').css({
|
'</div>').css("background-color", menuStyle.backgroundColor).css("border", menuStyle.borderBottomWidth+" "+menuStyle.borderBottomStyle+" "+menuStyle.borderBottomColor));
|
||||||
background: $('.reply').css('background'),
|
|
||||||
borderColor : $('.reply').css('border-color')
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
@ -974,10 +974,18 @@ span.pln {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#watchlist {
|
||||||
|
font-size: 8pt;
|
||||||
|
width: 15%;
|
||||||
|
position: fixed;
|
||||||
|
right: 0pt;
|
||||||
|
bottom: 0pt;
|
||||||
|
margin: 0pt;
|
||||||
|
padding: 0pt;
|
||||||
|
}
|
||||||
|
|
||||||
.watchlist-inner, .watchlist-controls {
|
.watchlist-inner, .watchlist-controls {
|
||||||
margin: 0 auto;
|
margin: 0pt;
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user