Skip to content

Commit

Permalink
Eliminate some internal formatting calls when setting RTE data
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 5, 2015
1 parent f93c528 commit 4199051
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions imp/js/compose.js
Expand Up @@ -608,8 +608,6 @@ var ImpCompose = {
);
}

this.rteInit(opts.rte);

if (this.rte && opts.rte) {
if (this.rte.busy()) {
this.setMessageText.bind(this, opts, r).delay(0.1);
Expand All @@ -618,9 +616,12 @@ var ImpCompose = {
this.rte.setData(r.text.body);
} else {
ta.setValue(r.text.body);
this.rteInit(opts.rte);
}

this.RTELoading(false);
if (!opts.rte) {
this.RTELoading(false);
}

this.setSignature(opts.rte, r.text.sig ? r.text.sig : this.identities[$F('identity')]);

Expand Down

0 comments on commit 4199051

Please sign in to comment.