mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Fix update was doing full refresh, changed back to previous behaviour
Left 'update-in-place', as discussed, as it's way more clear what it does.
This commit is contained in:
parent
faed2f97d4
commit
2cf0e7732d
@ -513,11 +513,12 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
id_loop: for (var i = 0; i < _row_ids.length; i++) {
|
id_loop: for (var i = 0; i < _row_ids.length; i++) {
|
||||||
var uid = _row_ids[i].toString().indexOf(this.controller.dataStorePrefix) == 0 ? _row_ids[i] : this.controller.dataStorePrefix + "::" + _row_ids[i];
|
var uid = _row_ids[i].toString().indexOf(this.controller.dataStorePrefix) == 0 ? _row_ids[i] : this.controller.dataStorePrefix + "::" + _row_ids[i];
|
||||||
switch (_type) {
|
switch (_type) {
|
||||||
|
// update-in-place = update, but "update" is too ambiguous
|
||||||
case "update-in-place":
|
case "update-in-place":
|
||||||
|
case "update":
|
||||||
this.egw().dataRefreshUID(uid);
|
this.egw().dataRefreshUID(uid);
|
||||||
break;
|
break;
|
||||||
case "edit":
|
case "edit":
|
||||||
case "update":
|
|
||||||
if (!this.refresh_update(uid)) {
|
if (!this.refresh_update(uid)) {
|
||||||
// Could not update just the row, full refresh has been requested
|
// Could not update just the row, full refresh has been requested
|
||||||
break id_loop;
|
break id_loop;
|
||||||
|
@ -787,11 +787,12 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
var uid = _row_ids[i].toString().indexOf(this.controller.dataStorePrefix) == 0 ? _row_ids[i] : this.controller.dataStorePrefix + "::" + _row_ids[i];
|
var uid = _row_ids[i].toString().indexOf(this.controller.dataStorePrefix) == 0 ? _row_ids[i] : this.controller.dataStorePrefix + "::" + _row_ids[i];
|
||||||
switch(_type)
|
switch(_type)
|
||||||
{
|
{
|
||||||
|
// update-in-place = update, but "update" is too ambiguous
|
||||||
case "update-in-place":
|
case "update-in-place":
|
||||||
|
case "update":
|
||||||
this.egw().dataRefreshUID(uid);
|
this.egw().dataRefreshUID(uid);
|
||||||
break;
|
break;
|
||||||
case "edit":
|
case "edit":
|
||||||
case "update":
|
|
||||||
if(!this.refresh_update(uid))
|
if(!this.refresh_update(uid))
|
||||||
{
|
{
|
||||||
// Could not update just the row, full refresh has been requested
|
// Could not update just the row, full refresh has been requested
|
||||||
|
Loading…
Reference in New Issue
Block a user