[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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user