Skip to content

Node.js based forum software built for the modern web

widgets.render doesn't actually use the url

psychobunnyecbb05ccca27
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 3d112f486a..0d3e126d9d 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -93,7 +93,7 @@ var ajaxify = ajaxify || {};
templates.parse(tpl_url, data, function(template) {
translator.translate(template, function(translatedTemplate) {
$('#content').html(translatedTemplate);
- ajaxify.widgets.render(tpl_url, url);
+ ajaxify.widgets.render(tpl_url);
ajaxify.variables.parse();
diff --git a/public/src/widgets.js b/public/src/widgets.js
index 4c035e5c0f..5a5333a96f 100644
--- a/public/src/widgets.js
+++ b/public/src/widgets.js
@@ -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;
}