fixes toggle_mod_tools undefined error

v1.18.x
Baris Soner Usakli 11 years ago committed by bdharrington7
parent d60151a6cc
commit a885444740

@ -897,23 +897,6 @@ define(['composer'], function(composer) {
}
}
function toggle_mod_tools(pid, state) {
var postEl = $(document.querySelector('#post-container li[data-pid="' + pid + '"]')),
editEl = postEl.find('.edit'),
deleteEl = postEl.find('.delete');
if (state) {
editEl.removeClass('none');
deleteEl.removeClass('none');
} else {
editEl.addClass('none');
deleteEl.addClass('none');
}
}
Topic.postCount = templates.get('postcount');
window.onscroll = updateHeader;
@ -1084,6 +1067,20 @@ define(['composer'], function(composer) {
});
}
function toggle_mod_tools(pid, state) {
var postEl = $(document.querySelector('#post-container li[data-pid="' + pid + '"]')),
editEl = postEl.find('.edit'),
deleteEl = postEl.find('.delete');
if (state) {
editEl.removeClass('none');
deleteEl.removeClass('none');
} else {
editEl.addClass('none');
deleteEl.addClass('none');
}
}
function updatePostCount() {
socket.emit('api:topics.postcount', templates.get('topic_id'), function(err, postcount) {
if(!err) {

Loading…
Cancel
Save