mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
@@ -34,7 +34,9 @@ app.cacheBuster = null;
|
|||||||
app.handleSearch();
|
app.handleSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleNewTopic();
|
$('#content').on('click', '#new_topic', function(){
|
||||||
|
app.newTopic();
|
||||||
|
});
|
||||||
|
|
||||||
require(['components'], function(components) {
|
require(['components'], function(components) {
|
||||||
components.get('user/logout').on('click', app.logout);
|
components.get('user/logout').on('click', app.logout);
|
||||||
@@ -455,9 +457,8 @@ app.cacheBuster = null;
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function handleNewTopic() {
|
app.newTopic = function (cid) {
|
||||||
$('#content').on('click', '#new_topic', function() {
|
cid = cid || ajaxify.data.cid;
|
||||||
var cid = ajaxify.data.cid;
|
|
||||||
if (cid) {
|
if (cid) {
|
||||||
$(window).trigger('action:composer.topic.new', {
|
$(window).trigger('action:composer.topic.new', {
|
||||||
cid: cid
|
cid: cid
|
||||||
@@ -477,8 +478,7 @@ app.cacheBuster = null;
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
}
|
|
||||||
|
|
||||||
app.loadJQueryUI = function(callback) {
|
app.loadJQueryUI = function(callback) {
|
||||||
if (typeof $().autocomplete === 'function') {
|
if (typeof $().autocomplete === 'function') {
|
||||||
|
|||||||
Reference in New Issue
Block a user