This commit is contained in:
psychobunny
2014-07-09 15:41:03 -04:00
parent ecbb05ccca
commit c6183f1a82
5 changed files with 30 additions and 19 deletions

View File

@@ -33,10 +33,7 @@
function renderWidgets(location) {
var area = $('#content [widget-area="' + location + '"]');
socket.emit('widgets.render', {template: tpl_url + '.tpl', location: location}, function(err, renderedWidgets) {
if (err) {
return;
}
$.get(RELATIVE_PATH + '/api/widgets/render/' + tpl_url + '/' + location, function(renderedWidgets) {
var html = '';
for (var i=0; i<renderedWidgets.length; ++i) {