Node.js based forum software built for the modern web
show widget title next to type, closes #1313
barisusakli41d5d16bac32
diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.jsindex 4dc81d6660..95ed41e2bc 100644--- a/public/src/forum/admin/themes.js+++ b/public/src/forum/admin/themes.js@@ -26,7 +26,7 @@ define(['forum/admin/settings'], function(Settings) {themeType = parentEl.attr('data-type'),cssSrc = parentEl.attr('data-css'),themeId = parentEl.attr('data-theme');-+socket.emit('admin.themes.set', {type: themeType,id: themeId,@@ -228,7 +228,7 @@ define(['forum/admin/settings'], function(Settings) {data: widgetData});});-+socket.emit('admin.widgets.set', {template: template,location: location,@@ -246,6 +246,11 @@ define(['forum/admin/settings'], function(Settings) {}function populateWidget(widget, data) {+ if (data.title) {+ var title = widget.find('.panel-heading strong');+ title.text(title.text() + ' - ' + data.title);+ }+widget.find('input, textarea').each(function() {var input = $(this),value = data[input.attr('name')];@@ -277,8 +282,6 @@ define(['forum/admin/settings'], function(Settings) {appendToggle(widgetEl);}}--}}});