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 @module Discourse
**/ **/
export default ObjectController.extend(ModalFunctionality, { export default ObjectController.extend(ModalFunctionality, {
raw_email: "", rawEmail: "",
loadRawEmail: function(postId) { loadRawEmail: function(postId) {
var self = this; var self = this;
Discourse.Post.loadRawEmail(postId).then(function (raw_email) { Discourse.Post.loadRawEmail(postId).then(function (result) {
self.set("raw_email", raw_email); self.set("rawEmail", result);
}); });
} }

View File

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