From 5d09354f49eb5c00998f906dd7db62bdf82cea67 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 6 Feb 2015 11:57:39 -0800 Subject: [PATCH] CRM-15855 - crmAutosave - Bump up default interval (3s=>5s) --- js/angular-crmAutosave.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/angular-crmAutosave.js b/js/angular-crmAutosave.js index 9466627f2b..ab80bf799d 100644 --- a/js/angular-crmAutosave.js +++ b/js/angular-crmAutosave.js @@ -10,7 +10,7 @@ // // - crm-autosave="callback" -- A function to handle saving. Should return a promise. // If it's not a promise, then we'll assume that it completes successfully. - // - crm-autosave-interval="object" -- Interval spec. Default: {poll: 250, save: 3000} + // - crm-autosave-interval="object" -- Interval spec. Default: {poll: 250, save: 5000} // - crm-autosave-if="conditional" -- Only allow autosave when conditional returns true. Default: !form.$invalid // - crm-autosave-model="object" -- (Re)schedule saves based on observed changes to object. // We perform deep ispection on the model object. This could be a performance issue you had many concurrent @@ -22,7 +22,7 @@ restrict: 'AE', require: '^form', link: function(scope, element, attrs, form) { - var intervals = angular.extend({poll: 250, save: 3000}, scope.$eval(attrs.crmAutosaveInterval)); + var intervals = angular.extend({poll: 250, save: 5000}, scope.$eval(attrs.crmAutosaveInterval)); var jobs = {poll: null, save: null}; // job handles used ot cancel/reschedule timeouts/intervals var lastSeenModel = null; var saving = false; -- 2.25.1