fix images in manage/flags and fadeout

v1.18.x
barisusakli 10 years ago
parent 040d7b8424
commit 29fcb6c366

@ -5,6 +5,7 @@ define('admin/manage/flags', ['forum/infinitescroll', 'admin/modules/selectable'
var Flags = {}; var Flags = {};
Flags.init = function() { Flags.init = function() {
$('.post-container .content img').addClass('img-responsive')
handleDismiss(); handleDismiss();
handleDelete(); handleDelete();
handleInfiniteScroll(); handleInfiniteScroll();
@ -37,11 +38,11 @@ define('admin/manage/flags', ['forum/infinitescroll', 'admin/modules/selectable'
return app.alertError(err.messaage); return app.alertError(err.messaage);
} }
btn.parent().fadeOut(function() { btn.parent().fadeOut(function() {
btn.remove(); $(this).remove();
if (!$('.flags [data-pid]').length) {
$('.post-container').text('No flagged posts!');
}
}); });
if (!$('.flags [data-pid]').length) {
$('.post-container').text('No flagged posts!');
}
} }
function handleInfiniteScroll() { function handleInfiniteScroll() {

Loading…
Cancel
Save