add cid to widgets.render

init date pickers in widgets ACP
This commit is contained in:
barisusakli
2016-12-13 14:11:56 +03:00
parent 82d3b24cd3
commit e86708cb0c
3 changed files with 18 additions and 11 deletions

View File

@@ -109,22 +109,17 @@ apiController.getConfig = function (req, res, next) {
apiController.renderWidgets = function (req, res, next) {
var areas = {
template: req.query.template,
locations: req.query.locations,
url: req.query.url
};
if (!areas.template || !areas.locations) {
if (!req.query.template || !req.query.locations) {
return res.status(200).json({});
}
widgets.render(req.uid,
{
template: areas.template,
url: areas.url,
locations: areas.locations,
isMobile: req.query.isMobile === 'true'
template: req.query.template,
url: req.query.url,
locations: req.query.locations,
isMobile: req.query.isMobile === 'true',
cid: req.query.cid
},
req,
res,