diff --git a/Gruntfile.js b/Gruntfile.js index 625bfd2d..f4c637e7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -19,7 +19,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks("grunt-contrib-uglify"); grunt.loadNpmTasks("grunt-contrib-watch"); grunt.registerTask( - "handlebars", + "build", function() { grunt.util.spawn({ cmd: "node", @@ -36,6 +36,6 @@ module.exports = function(grunt) { ); grunt.registerTask( "default", - ["uglify", "handlebars"] + ["uglify", "build"] ); }; diff --git a/client/js/shout.js b/client/js/shout.js index 5a50433c..f229ea51 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -309,6 +309,10 @@ $(function() { break; } }); + + socket.on("topic", function(data) { + $("#chan-" + data.chan).find(".header .topic").html(data.topic); + }); socket.on("users", function(data) { var users = chat.find("#chan-" + data.chan).find(".users").html(render("user", data)); diff --git a/client/js/shout.templates.js b/client/js/shout.templates.js index a9d7ebfd..d68bff93 100644 --- a/client/js/shout.templates.js +++ b/client/js/shout.templates.js @@ -40,9 +40,10 @@ templates['chat'] = template({"1":function(depth0,helpers,partials,data) { if (stack1 != null) { buffer += stack1; } buffer += " \n \n " + escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper))) - + "\n " - + escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper))) - + " \n \n