global widgets will appear after page widgets
v1.18.x
Barış Soner Uşaklı 7 years ago
parent 783d2eb073
commit 9628956a56

@ -31,7 +31,7 @@ widgets.render = function (uid, options, callback) {
var returnData = {};
async.each(locations, function (location, done) {
widgetsByLocation[location] = (data.global[location] || []).concat(data[options.template][location] || []);
widgetsByLocation[location] = (data[options.template][location] || []).concat(data.global[location] || []);
if (!widgetsByLocation[location].length) {
return done(null, { location: location, widgets: [] });

Loading…
Cancel
Save