mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
This commit is contained in:
@@ -285,6 +285,12 @@ define('composer', dependencies, function(taskbar, controls, uploads, formatting
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
postContainer.on('click', function() {
|
||||||
|
if (!taskbar.isActive(post_uuid)) {
|
||||||
|
taskbar.updateActive(post_uuid);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
bodyEl.on('input propertychange', function() {
|
bodyEl.on('input propertychange', function() {
|
||||||
preview.render(postContainer);
|
preview.render(postContainer);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -95,6 +95,11 @@ define('taskbar', function() {
|
|||||||
var tasks = taskbar.tasklist.find('li');
|
var tasks = taskbar.tasklist.find('li');
|
||||||
tasks.removeClass('active');
|
tasks.removeClass('active');
|
||||||
tasks.filter('[data-uuid="' + uuid + '"]').addClass('active');
|
tasks.filter('[data-uuid="' + uuid + '"]').addClass('active');
|
||||||
|
},
|
||||||
|
|
||||||
|
isActive: function(uuid) {
|
||||||
|
var taskBtn = taskbar.tasklist.find('li[data-uuid="' + uuid + '"]');
|
||||||
|
return taskBtn.hasClass('active');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -107,6 +112,7 @@ define('taskbar', function() {
|
|||||||
discard: taskbar.discard,
|
discard: taskbar.discard,
|
||||||
minimize: taskbar.minimize,
|
minimize: taskbar.minimize,
|
||||||
toggleNew: taskbar.toggleNew,
|
toggleNew: taskbar.toggleNew,
|
||||||
updateActive: taskbar.updateActive
|
updateActive: taskbar.updateActive,
|
||||||
|
isActive: taskbar.isActive
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user