Node.js based forum software built for the modern web
closes #863
Baris Soner Usaklif68b692ce4a9
diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.jsindex 9eb48b8449..43b614d339 100644--- a/public/src/modules/notifications.js+++ b/public/src/modules/notifications.js@@ -12,11 +12,13 @@ define(function() {e.preventDefault();if (notifContainer.className.indexOf('open') === -1) {socket.emit('notifications.get', null, function(err, data) {+var notifFrag = document.createDocumentFragment(),notifEl = document.createElement('li'),numRead = data.read.length,numUnread = data.unread.length,x;+notifList.innerHTML = '';if (!err && (data.read.length + data.unread.length) > 0) {for (x = 0; x < numUnread; x++) {diff --git a/public/templates/admin/settings.tpl b/public/templates/admin/settings.tplindex 3601f7c2ca..6da4d3594a 100644--- a/public/templates/admin/settings.tpl+++ b/public/templates/admin/settings.tpl@@ -17,6 +17,8 @@<form><label>Site Title</label><input class="form-control" type="text" placeholder="Your Community Name" data-field="title" /><br />+ <label>Browser Title</label>+ <input class="form-control" type="text" placeholder="Browser Title" data-field="browserTitle" /><br /><label>Site Description</label><input type="text" class="form-control" placeholder="A short description about your community" data-field="description" /><br /><label>Site Keywords</label>diff --git a/src/meta.js b/src/meta.jsindex c130f1f974..1edd2dc8ab 100644--- a/src/meta.js+++ b/src/meta.js@@ -174,9 +174,9 @@ var fs = require('fs'),var title;if (err) {- title = Meta.config.title || 'NodeBB';+ title = Meta.config.browserTitle || 'NodeBB';} else {- title = (title ? title + ' | ' : '') + (Meta.config.title || 'NodeBB');+ title = (title ? title + ' | ' : '') + (Meta.config.browserTitle || 'NodeBB');}callback(null, title);diff --git a/src/webserver.js b/src/webserver.jsindex 01ba2ac5c0..efd0c4f7bb 100644--- a/src/webserver.js+++ b/src/webserver.js@@ -100,7 +100,7 @@ module.exports.server = server;'brand:logo': meta.config['brand:logo'] || '','brand:logo:display': meta.config['brand:logo']?'':'hide','brand:favicon': meta.config['brand:favicon'] || nconf.get('relative_path') + '/favicon.ico',- browserTitle: meta.config.title || 'NodeBB',+ browserTitle: meta.config.browserTitle || 'NodeBB',csrf: options.res.locals.csrf_token,relative_path: nconf.get('relative_path'),clientScripts: clientScripts,