Skip to content

Commit

Permalink
examples for #355
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Mar 24, 2016
1 parent c2f8ce1 commit 4b34f68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/js/manipulation/del-row-custom-confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ function addProducts(quantity) {

addProducts(5);

function customConfirm(next) {
if (confirm('(It is a custom confirm function)Are you sure you want to delete?')) {
function customConfirm(next, dropRowKeys) {
const dropRowKeysStr = dropRowKeys.join(',');
if (confirm(`(It's a custom confirm)Are you sure you want to delete ${dropRowKeysStr}?`)) {
// If the confirmation is true, call the function that
// continues the deletion of the record.
next();
Expand Down

0 comments on commit 4b34f68

Please sign in to comment.