edit editors' "message of the day" so the page doesn't jump every time I (or any of our editors) load the homepage
This commit is contained in:
Родитель
b960511e83
Коммит
c4fbc5acc8
|
@ -309,6 +309,7 @@ ul.tabnav a:hover {
|
|||
}
|
||||
|
||||
.daily-message {
|
||||
display: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,19 +4,19 @@ $(function() {
|
|||
}
|
||||
|
||||
var show_comments = function(e) {
|
||||
e.preventDefault()
|
||||
var me = e.target;
|
||||
$(me).hide()
|
||||
$(me).next().show()
|
||||
$(me).parents('tr').next().show()
|
||||
e.preventDefault();
|
||||
var $me = $(e.target);
|
||||
$me.hide();
|
||||
$me.next().show();
|
||||
$me.parents('tr').next().show();
|
||||
}
|
||||
|
||||
var hide_comments = function(e) {
|
||||
e.preventDefault();
|
||||
var me = e.target;
|
||||
$(me).hide();
|
||||
$(me).prev().show()
|
||||
$(me).parents('tr').next().hide()
|
||||
var $me = $(e.target);
|
||||
$me.hide();
|
||||
$me.prev().show();
|
||||
$me.parents('tr').next().hide();
|
||||
}
|
||||
|
||||
|
||||
|
@ -215,8 +215,9 @@ function initDailyMessage(doc) {
|
|||
return;
|
||||
}
|
||||
$motd.find('.close').show();
|
||||
if (storage.get('motd_closed') == $('p', $motd).text()) {
|
||||
$motd.hide();
|
||||
if (storage.get('motd_closed') != $('p', $motd).text()) {
|
||||
// You haven't read this spam yet? Here, I have something to show you.
|
||||
$motd.slideDown();
|
||||
}
|
||||
$motd.find('.close').click(function(e) {
|
||||
e.stopPropagation();
|
||||
|
|
Загрузка…
Ссылка в новой задаче