widgets.render doesn't actually use the url

v1.18.x
psychobunny 11 years ago
parent 9d7a8fcc0b
commit ecbb05ccca

@ -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();

@ -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;
}

Loading…
Cancel
Save