v1.18.x
Baris Soner Usakli 11 years ago
parent c06320e28b
commit f68b692ce4

@ -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++) {

@ -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>

@ -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);

@ -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,

Loading…
Cancel
Save