Force nextmatch to load affected rows by clearing the data from data store

This commit is contained in:
Nathan Gray 2012-06-06 21:56:18 +00:00
parent 3979b104ad
commit 71456ff8ef
2 changed files with 7 additions and 3 deletions

View File

@ -151,12 +151,16 @@ function nm_action(_action, _senders, _target, _ids)
if(_action.data.nm_action == 'open_popup') if(_action.data.nm_action == 'open_popup')
{ {
// Force nextmatch to re-load affected rows
for(var i = 0; i < idsArr.length; i++)
{
nextmatch.egw().dataStoreUID(nextmatch.egw().appName +'::'+idsArr[i],false);
}
nextmatch.getInstanceManager().submit(); nextmatch.getInstanceManager().submit();
// Clear action in case there's another one // Clear action in case there's another one
delete nextmatch.getValue; delete nextmatch.getValue;
// TODO: force nextmatch to re-load affected rows
} }
else else
{ {

View File

@ -373,7 +373,7 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
for (var key in localStorage) for (var key in localStorage)
{ {
var parts = key.split("::"); var parts = key.split("::");
if (parts[0] === _prefix) if (parts[0] === _prefix && localStorage[key].data)
{ {
result.push(parts[1]); result.push(parts[1]);
} }