[FIX] Fixed the issue for confirmation popup when we delete a record from a list

lp bug: https://launchpad.net/bugs/872708 fixed

bzr revid: tpa@tinyerp.com-20111013085758-el0bn170ai0h6wfc
This commit is contained in:
Turkesh Patel (Open ERP)
2011-10-13 14:27:58 +05:30
parent a58395f2af
commit 937c881aaa
+1 -1
View File
@@ -463,7 +463,7 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
* @param {Array} ids the ids of the records to delete
*/
do_delete: function (ids) {
if (!ids.length) {
if (!ids.length || !confirm(" Are you sure to remove those records ?")) {
return;
}
var self = this;