Commit 30c28187 authored by Project Open's avatar Project Open

- Reduced delay to 200ms for delayed sync

parent f49af356
......@@ -21,7 +21,7 @@ Ext.define('PO.store.user.SenchaPreferenceStore', {
model: 'PO.model.user.SenchaPreference', // Uses standard User as model
autoLoad: false,
remoteFilter: true, // Do not filter on the Sencha side
debug: false,
debug: true,
pageSize: 100000, // Load all projects, no matter what size(?)
proxy: {
type: 'rest', // Standard ]po[ REST interface for loading
......@@ -38,14 +38,14 @@ Ext.define('PO.store.user.SenchaPreferenceStore', {
type: 'json' // Allow Sencha to write ticket changes
}
},
deferredSync: null,
deferredSync: null, // Function to sync in 200ms
constructor: function(config) {
var me = this;
if (me.debug) console.log('SenchaPreferenceStore.constructor: Started');
me.callParent([config]);
// POST the object to the REST API, performing an update
me.deferredSync = Ext.Function.createBuffered(me.sync, 1000, me);
me.deferredSync = Ext.Function.createBuffered(me.sync, 200, me);
if (me.debug) console.log('SenchaPreferenceStore.constructor: Finished');
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment