Merge pull request #2914 from techAPJ/patch-2

user proper naming conversation
This commit is contained in:
Robin Ward 2014-10-24 11:58:03 -04:00
commit 9c862337b2
2 changed files with 5 additions and 5 deletions

View File

@ -12,12 +12,12 @@ import ObjectController from 'discourse/controllers/object';
@module Discourse
**/
export default ObjectController.extend(ModalFunctionality, {
raw_email: "",
rawEmail: "",
loadRawEmail: function(postId) {
var self = this;
Discourse.Post.loadRawEmail(postId).then(function (raw_email) {
self.set("raw_email", raw_email);
Discourse.Post.loadRawEmail(postId).then(function (result) {
self.set("rawEmail", result);
});
}

View File

@ -1,6 +1,6 @@
<div class="modal-body">
{{#if raw_email}}
{{textarea value=raw_email class="raw-email-textarea"}}
{{#if rawEmail}}
{{textarea value=rawEmail class="raw-email-textarea"}}
{{else}}
{{i18n raw_email.not_available}}
{{/if}}