(js) Update raw source when editing a draft

This commit is contained in:
Francis Lachapelle committed 2016-05-10 21:23:15 -04:00
1 parent 315117b029
commit 42bdfbcf7b
3 files changed
+4 -3

No files matched your search

@@ -269,9 +269,9 @@
}
function toggleRawSource($event) {
if (!vm.showRawSource && !vm.rawSource) {
if (!vm.showRawSource && !vm.message.$rawSource) {
Message.$$resource.post(vm.message.id, "viewsource").then(function(data) {
vm.rawSource = data;
vm.message.$rawSource = data;
vm.showRawSource = true;
});
}