Nextmatch update changes:

- Implement "update" as alias for edit
- Comment out handling of edit (handle as add)
This commit is contained in:
Nathan Gray 2013-11-15 15:28:38 +00:00
parent 82d3ac1d2e
commit 3c38cd10c4

View File

@ -438,6 +438,8 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
var uid = app + "::" + _row_ids[i]; var uid = app + "::" + _row_ids[i];
switch(_type) switch(_type)
{ {
/*
case "update":
case "edit": case "edit":
if(!egw().dataRefreshUID(uid)) if(!egw().dataRefreshUID(uid))
{ {
@ -446,12 +448,14 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
break id_loop; break id_loop;
} }
break; break;
*/
case "delete": case "delete":
// Blank the row // Blank the row
egw().dataStoreUID(uid,null); egw().dataStoreUID(uid,null);
// Stop caring about this ID // Stop caring about this ID
egw().dataUnregisterUID(uid); egw().dataUnregisterUID(uid);
break; break;
case "edit":
case "add": case "add":
default: default:
// Trigger refresh // Trigger refresh