approved comments now move to recent comments
This commit is contained in:
parent
65c2fce636
commit
588a8c306b
@ -11,8 +11,8 @@ function initialize() {
|
|||||||
$(item).on('click', function(event) {
|
$(item).on('click', function(event) {
|
||||||
$.ajax('PUT', '/1.0/' + encodeURIComponent(path) + '/' + id + '/approve')
|
$.ajax('PUT', '/1.0/' + encodeURIComponent(path) + '/' + id + '/approve')
|
||||||
.then(function(status, rv) {
|
.then(function(status, rv) {
|
||||||
// $(node).detach();
|
$(node).prependTo($('#approved'));
|
||||||
$('h2.recent + span').after(node);
|
$('.approve', node).remove();
|
||||||
});
|
});
|
||||||
event.stop();
|
event.stop();
|
||||||
});
|
});
|
||||||
|
@ -52,9 +52,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="row buttons">
|
<div class="row buttons">
|
||||||
<a href="#" class="red button column grid_1">Delete</a>
|
<a href="#" class="red delete column grid_1">Delete</a>
|
||||||
% if comment.pending:
|
% if comment.pending:
|
||||||
<a href="#" class="green button column grid_1">Approve</a>
|
<a href="#" class="green approve column grid_1">Approve</a>
|
||||||
% endif
|
% endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row" id="pending">
|
||||||
% for comment in app.db.recent(limit=get('pendinglimit', int), mode=2):
|
% for comment in app.db.recent(limit=get('pendinglimit', int), mode=2):
|
||||||
${make(comment)}
|
${make(comment)}
|
||||||
% endfor
|
% endfor
|
||||||
@ -96,7 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row" id="approved">
|
||||||
% for comment in app.db.recent(limit=get('recentlimit', int) or 20, mode=5):
|
% for comment in app.db.recent(limit=get('recentlimit', int) or 20, mode=5):
|
||||||
${make(comment)}
|
${make(comment)}
|
||||||
% endfor
|
% endfor
|
||||||
|
@ -108,7 +108,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.approve, .delete {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 1px solid #666;
|
border: 1px solid #666;
|
||||||
|
Loading…
Reference in New Issue
Block a user