Skip to content

Commit

Permalink
Added timeout to Autosave JS and made check loop happen at 20 seconds m…
Browse files Browse the repository at this point in the history
  • Loading branch information
bnvk committed Jun 13, 2014
1 parent cdb25bc commit 0db2063
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/default/js/app/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ MailPile.prototype.compose_autosave = function(mid, form_data) {
$.ajax({
url : mailpile.api.compose_save,
type : 'POST',
timeout : 15000,
data : form_data,
dataType : 'json',
success : function(response) {
Expand Down Expand Up @@ -574,7 +575,7 @@ $(document).ready(function() {

// Run Autosave
mailpile.compose_autosave_timer.play();
mailpile.compose_autosave_timer.set({ time : 10000, autostart : true });
mailpile.compose_autosave_timer.set({ time : 20000, autostart : true });
}


Expand Down

0 comments on commit 0db2063

Please sign in to comment.