[IMP]removed the 'DO you really want to remove these record?'for many2many and add 'Are you Sure?' for normal list

bzr revid: pan@tinyerp.com-20130131133135-t36zbgo3rhylhmy4
This commit is contained in:
Anand Patel (OpenERP)
2013-01-31 19:01:35 +05:30
parent 4bb436b7bf
commit 68ff3ed164
+4 -2
View File
@@ -587,8 +587,10 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
* @param {Array} ids the ids of the records to delete
*/
do_delete: function (ids) {
if (!(ids.length && confirm(_t("Do you really want to remove these records?")))) {
return;
if (!this.m2m_field){
if (!(ids.length && confirm(_t("Are you sure?"))) && (this.m2m_field)) {
return;
}
}
var self = this;
return $.when(this.dataset.unlink(ids)).done(function () {