object_actions: _edit: ~ send: { params: { onclick : "if(confirm('Are you sure?')){return true;}else{return false;}" } }
This not works with a defaul action like _delete
Yes, _delete has a 'confirm' parameter. You can change the confirm text with it:_delete: { label: Delete, confirm: Are you sure? }
That just saved my day :-)Many thanks!
THANKS!!!!!!!!!!!! :D :D :D :D
what if I use a prompt and I want to pass it to the called action ?
Hmm. In this case, I would add a class name (ex promptbutton) to the action button then put a 'click' event on the class name with jquery ( $('.promptbutton').click(...) ), and append the this.href value with the prompt value. I hope this helps.
This not works with a defaul action like _delete
ReplyDeleteYes, _delete has a 'confirm' parameter. You can change the confirm text with it:
ReplyDelete_delete: { label: Delete, confirm: Are you sure? }
That just saved my day :-)
ReplyDeleteMany thanks!
THANKS!!!!!!!!!!!! :D :D :D :D
ReplyDeletewhat if I use a prompt and I want to pass it to the called action ?
ReplyDeleteHmm. In this case, I would add a class name (ex promptbutton) to the action button then put a 'click' event on the class name with jquery ( $('.promptbutton').click(...) ), and append the this.href value with the prompt value. I hope this helps.
Delete