fixed replay to first mail in newly refreshed or changed folder removes mail when sending

caused by eT exec_id got lost in call to egw.dataRefreshUID
This commit is contained in:
Ralf Becker 2014-09-03 14:33:13 +00:00
parent 1d6b4af156
commit 6ec9df222f

View File

@ -138,7 +138,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
return indexes.length; return indexes.length;
} }
function parseServerResponse(_result, _callback, _context) function parseServerResponse(_result, _callback, _context, _execId, _widgetId)
{ {
// Check whether the result is valid // Check whether the result is valid
// This result is not for us, quietly return // This result is not for us, quietly return
@ -233,7 +233,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
// Update or store data in long-term storage // Update or store data in long-term storage
window.localStorage[_uid] = JSON.stringify({timestamp: (new Date).getTime(), data: data}); window.localStorage[_uid] = JSON.stringify({timestamp: (new Date).getTime(), data: data});
} }
},cache_key); }, cache_key, _execId, _widgetId);
} }
// Don't keep data in long-term cache with request also // Don't keep data in long-term cache with request also
_result.data = {}; _result.data = {};
@ -243,7 +243,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
{ {
// Maybe ran out of space? Free some up. // Maybe ran out of space? Free some up.
if(e.name == 'QuotaExceededError' // storage quota is exceeded, remove cached data if(e.name == 'QuotaExceededError' // storage quota is exceeded, remove cached data
|| 'NS_ERROR_DOM_QUOTA_REACHED') // FF-name || e.name == 'NS_ERROR_DOM_QUOTA_REACHED') // FF-name
{ {
var count = _clearCache(_context.prefix); var count = _clearCache(_context.prefix);
egw.debug('info', 'localStorage full, removed ' + count + ' stored datasets'); egw.debug('info', 'localStorage full, removed ' + count + ' stored datasets');
@ -399,7 +399,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
// We may still ask the server though. // We may still ask the server though.
var no_cache = _context.no_cache; var no_cache = _context.no_cache;
_context.no_cache = true; _context.no_cache = true;
parseServerResponse(cached, _callback, _context); parseServerResponse(cached, _callback, _context, _execId, _widgetId);
_context.no_cache = no_cache; _context.no_cache = no_cache;
@ -430,7 +430,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
lm lm
], ],
function(result) { function(result) {
parseServerResponse(result, _callback, _context); parseServerResponse(result, _callback, _context, _execId, _widgetId);
}, },
this, this,
true true