mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
send full url to widgets as well so they can parse based on path
This commit is contained in:
@@ -120,7 +120,7 @@ var ajaxify = {};
|
|||||||
async.each(widgetLocations, function(location, next) {
|
async.each(widgetLocations, function(location, next) {
|
||||||
var area = $('#content [widget-area="' + location + '"]');
|
var area = $('#content [widget-area="' + location + '"]');
|
||||||
|
|
||||||
socket.emit('widgets.render', {template: tpl_url + '.tpl', location: location}, function(err, renderedWidgets) {
|
socket.emit('widgets.render', {template: tpl_url + '.tpl', url: url, location: location}, function(err, renderedWidgets) {
|
||||||
area.html(templates.prepare(area.html()).parse({widgets: renderedWidgets})).removeClass('hidden');
|
area.html(templates.prepare(area.html()).parse({widgets: renderedWidgets})).removeClass('hidden');
|
||||||
next(err);
|
next(err);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user