From bbbb36212598a0394dcc80dda91a2cc78d1e6d99 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 9 Mar 2015 16:15:00 -0400 Subject: [PATCH] not referencing parent scope when inside BEGIN in widgets tpl --- public/src/admin/extend/widgets.js | 2 +- src/views/admin/extend/widgets.tpl | 8 ++++---- src/widgets.js | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/public/src/admin/extend/widgets.js b/public/src/admin/extend/widgets.js index 239d5bd809..b57453ffab 100644 --- a/public/src/admin/extend/widgets.js +++ b/public/src/admin/extend/widgets.js @@ -3,7 +3,7 @@ define('admin/extend/widgets', function() { var Widgets = {}; - + Widgets.init = function() { $('#widgets .nav-pills a').on('click', function(ev) { var $this = $(this); diff --git a/src/views/admin/extend/widgets.tpl b/src/views/admin/extend/widgets.tpl index d2aca20177..91fc127d89 100644 --- a/src/views/admin/extend/widgets.tpl +++ b/src/views/admin/extend/widgets.tpl @@ -6,7 +6,7 @@ @@ -14,10 +14,10 @@
-
+
-
-

{templates.areas.name} {templates.template} / {templates.areas.location}

+
+

{areas.name} {template} / {areas.location}

diff --git a/src/widgets.js b/src/widgets.js index c0234b2a28..ffe2ad2629 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -9,7 +9,6 @@ var async = require('async'), (function(Widgets) { - Widgets.render = function(uid, area, callback) { if (!area.locations || !area.template) { return callback(new Error('[[error:invalid-data]]'));