mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
closed #119
This commit is contained in:
@@ -259,7 +259,6 @@
|
|||||||
pid = ids[0],
|
pid = ids[0],
|
||||||
uid = ids[1];
|
uid = ids[1];
|
||||||
|
|
||||||
if (thread_state.locked !== '1') {
|
|
||||||
var element = $(this).find('i');
|
var element = $(this).find('i');
|
||||||
if(element.attr('class') == 'icon-star-empty') {
|
if(element.attr('class') == 'icon-star-empty') {
|
||||||
element.attr('class', 'icon-star');
|
element.attr('class', 'icon-star');
|
||||||
@@ -269,17 +268,13 @@
|
|||||||
element.attr('class', 'icon-star-empty');
|
element.attr('class', 'icon-star-empty');
|
||||||
socket.emit('api:posts.unfavourite', {pid: pid, room_id: app.current_room});
|
socket.emit('api:posts.unfavourite', {pid: pid, room_id: app.current_room});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.post-container').delegate('.edit', 'click', function(e) {
|
$('.post-container').delegate('.edit', 'click', function(e) {
|
||||||
var pid = ($(this).attr('id') || $(this.parentNode).attr('id')).split('_')[1];
|
var pid = ($(this).attr('id') || $(this.parentNode).attr('id')).split('_')[1];
|
||||||
|
|
||||||
var main = $(this).parents('.main-post');
|
var main = $(this).parents('.main-post');
|
||||||
// if(main.length > 0)
|
|
||||||
// app.open_post_window('edit', tid, topic_name, pid);
|
|
||||||
// else
|
|
||||||
// app.open_post_window('edit', tid, "", pid);
|
|
||||||
require(['composer'], function(cmp) {
|
require(['composer'], function(cmp) {
|
||||||
cmp.push(null, null, pid);
|
cmp.push(null, null, pid);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user