Allow action to confirm only on multiple rows selected, but let single rows proceed

This commit is contained in:
Nathan Gray 2014-01-15 14:59:42 +00:00
parent 6792b9831c
commit e493255cc6

View File

@ -506,7 +506,7 @@ egwAction.prototype.execute = function(_senders, _target)
}
// check if actions needs to be confirmed first
if (this.data && this.data.confirm && this.onExecute.fcnt != window.nm_action &&
if (this.data && (this.data.confirm || this.data.confirm_multiple) && this.onExecute.fcnt != window.nm_action &&
typeof et2_dialog != 'undefined') // let old eTemplate run it's own confirmation from nextmatch_action.js
{
var msg = this.data.confirm;