[ADD] confirmation popup when deleting an element from the list view
bzr revid: xmo@openerp.com-20111017115117-0mas0bkdbkq0yku6
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user