From: benny Date: Fri, 13 Jul 2018 07:19:09 +0000 (+0800) Subject: Pman.Tab.PersonList.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=23f0a00fceaaca81f244b6ea1dc5234a2cc27f28 Pman.Tab.PersonList.js --- diff --git a/Pman.Tab.PersonList.js b/Pman.Tab.PersonList.js index d670b5c3..830fb15d 100644 --- a/Pman.Tab.PersonList.js +++ b/Pman.Tab.PersonList.js @@ -458,12 +458,13 @@ Pman.Tab.PersonList.prototype = { //Pman.genericDelete(_this, 'Person'); var ids = []; - console.log(_this.grid.dataSource); + _this.grid.dataSource.each(function(rr) { if (rr.selected) { ids.push(rr.data.id); } }); + console.log(ids.length); if (!ids.length) { Roo.MessageBox.alert("Error", "Select rows by clicking on the Internal# column"); return;