fixed indents

v1.18.x
Baris Usakli 12 years ago
commit e7619e6fe3

@ -110,6 +110,7 @@ fs.readFile(path.join(__dirname, 'config.json'), function(err, data) {
ask('Will you be using a port number to access NodeBB? (y)', function(use_port) {
ask('... the host IP or address of your Redis instance? (127.0.0.1)', function(redis_host) {
ask('... the host port of your Redis instance? (6379)', function(redis_port) {
ask('... the password of your Redis database? (no password)', function(redis_password) {
ask('... your NodeBB secret? (keyboard mash for a bit here)', function(secret) {
if (!base_url) base_url = 'http://localhost';
if (!port) port = 4567;
@ -128,7 +129,8 @@ fs.readFile(path.join(__dirname, 'config.json'), function(err, data) {
upload_path: '/public/uploads/',
redis: {
host: redis_host,
port: redis_port
port: redis_port,
password: redis_password
}
}
@ -166,5 +168,6 @@ fs.readFile(path.join(__dirname, 'config.json'), function(err, data) {
});
});
});
});
}
});

@ -7,18 +7,18 @@
<li class=''><a href='/admin/categories/disabled'>Disabled</a></li>
</ul>
<!-- TODO: remove inline event listeners. -->
<div class="row-fluid admin-categories">
<ul class="span12" id="entry-container">
<!-- BEGIN categories -->
<li class="entry-row {categories.blockclass}">
<li data-cid="{categories.cid}" class="entry-row {categories.blockclass}">
<form class="form-inline">
<div class="icon">
<i onclick="select_icon(this);" class="{categories.icon} icon-2x"></i>
<i onclick="select_icon(this); modified(this);" class="{categories.icon} icon-2x"></i>
</div>
<input placeholder="Category Name" value="{categories.name}" class="input-medium"></input>
<select class="blockclass input-medium" data-value="{categories.blockclass}" onchange="update_blockclass(this);">
<input placeholder="Category Name" value="{categories.name}" onchange="modified(this);" class="input-medium"></input>
<select class="blockclass input-medium" data-value="{categories.blockclass}" onchange="update_blockclass(this); modified(this);">
<option value="category-purple">category-purple</option>
<option value="category-darkblue">category-darkblue</option>
<option value="category-blue">category-blue</option>
@ -26,7 +26,7 @@
<option value="category-orange">category-orange</option>
</select>
<!--<input value="{categories.icon}" class="input-medium" onchange="update_icon(this);"></input>-->
<input placeholder="Category Description" value="{categories.description}" class="input-medium description"></input>
<input onchange="modified(this);" placeholder="Category Description" value="{categories.description}" class="input-medium description"></input>
<!--<a target="_blank" href="../category/{categories.slug}">category/{categories.slug}</a>-->
<!--<div style="float: right">
@ -37,12 +37,20 @@
<!-- END categories -->
</ul>
<button class="btn btn-large btn-primary" id="save">Save</button>
</div>
<script type="text/javascript">
var modified_catgories = {};
function modified(el) {
}
function select_icon(el) {
var selected = el.className.replace(' icon-2x', '');
jQuery('#icons .selected').removeClass('selected');

@ -7,6 +7,10 @@
RedisDB.exports = redis.createClient(global.config.redis.port, global.config.redis.host);
if( global.config.redis.password ) {
RedisDB.exports.auth(global.config.redis.password);
}
RedisDB.exports.handle = function(error) {
if (error !== null) {
if (PRODUCTION === false) {

Loading…
Cancel
Save