From 54504d5b60cff9df46224304e9ae6e3eff534c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 1 Apr 2013 17:33:06 +0200 Subject: [PATCH] remove useless console.log --- app/assets/javascripts/discourse/models/composer.js | 1 - app/assets/javascripts/discourse/views/composer_view.js | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/models/composer.js b/app/assets/javascripts/discourse/models/composer.js index 8a2a66c614a..1da614f3cec 100644 --- a/app/assets/javascripts/discourse/models/composer.js +++ b/app/assets/javascripts/discourse/models/composer.js @@ -248,7 +248,6 @@ Discourse.Composer = Discourse.Model.extend({ if (opts.postId) { this.set('loading', true); Discourse.Post.load(opts.postId).then(function(result) { - console.log(result); composer.set('post', result); composer.set('loading', false); }); diff --git a/app/assets/javascripts/discourse/views/composer_view.js b/app/assets/javascripts/discourse/views/composer_view.js index 0eb07b7d0a2..a43cc9a96bd 100644 --- a/app/assets/javascripts/discourse/views/composer_view.js +++ b/app/assets/javascripts/discourse/views/composer_view.js @@ -281,7 +281,6 @@ Discourse.ComposerView = Discourse.View.extend({ }); var addImages = function (e, data) { - console.log('addImages'); // can only upload one image at a time if (data.files.length > 1) { bootbox.alert(Em.String.i18n('post.errors.upload_too_many_images')); @@ -336,8 +335,7 @@ Discourse.ComposerView = Discourse.View.extend({ // I hate to use Em.run.later, but I don't think there's a way of waiting for a CSS transition // to finish. return Em.run.later(jQuery, (function() { - var replyTitle; - replyTitle = $('#reply-title'); + var replyTitle = $('#reply-title'); _this.resize(); if (replyTitle.length) { return replyTitle.putCursorAtEnd();