Sso integration, Simple Rainloop Api (#103)

Small fixes
This commit is contained in:
RainLoop Team 2014-04-14 20:07:33 +04:00
parent dde42c6190
commit e211899c7b
12 changed files with 191 additions and 18 deletions

View file

@ -12,6 +12,7 @@ function PopupsComposeViewModel()
this.aDraftInfo = null;
this.sInReplyTo = '';
this.bFromDraft = false;
this.bSkipNext = false;
this.sReferences = '';
this.bAllowIdentities = RL.settingsGet('AllowIdentities');
@ -278,6 +279,8 @@ function PopupsComposeViewModel()
this.savedError(false);
this.saving(true);
this.bSkipNext = true;
RL.cache().setFolderHash(RL.data().draftFolder(), '');
RL.remote().saveMessage(
@ -303,8 +306,9 @@ function PopupsComposeViewModel()
RL.sub('interval.1m', function () {
if (this.modalVisibility() && !RL.data().draftFolderNotEnabled() && !this.isEmptyForm(false) &&
!this.saving() && !this.sending() && !this.savedError())
!this.bSkipNext && !this.saving() && !this.sending() && !this.savedError())
{
this.bSkipNext = false;
this.saveCommand();
}
}, this);