From 6f90cb8fb325b3396ccc9233823107dbd165bed1 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 4 Dec 2013 21:12:25 +0000 Subject: [PATCH] Decrement row count when refreshing a delete --- etemplate/js/et2_extension_nextmatch.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 5f2eadaafb..fd9fdba77c 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -454,6 +454,10 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], egw().dataStoreUID(uid,null); // Stop caring about this ID egw().dataUnregisterUID(uid); + // Update the count + this.options.settings.total -= 1; + // This triggers an invalidate, which may update the grid in needed + this.dataview.grid.setTotalCount(this.options.settings.total); break; case "edit": case "add":