mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
widgets.render doesn't actually use the url
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
ajaxify.widgets.render = function(tpl_url, url, callback) {
|
||||
ajaxify.widgets.render = function(tpl_url, callback) {
|
||||
var widgetLocations = ['sidebar', 'footer', 'header'], numLocations;
|
||||
|
||||
$('#content [widget-area]').each(function() {
|
||||
@@ -33,7 +33,7 @@
|
||||
function renderWidgets(location) {
|
||||
var area = $('#content [widget-area="' + location + '"]');
|
||||
|
||||
socket.emit('widgets.render', {template: tpl_url + '.tpl', url: url, location: location}, function(err, renderedWidgets) {
|
||||
socket.emit('widgets.render', {template: tpl_url + '.tpl', location: location}, function(err, renderedWidgets) {
|
||||
if (err) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user