Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing Variables Through Callback

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to go through some of my code and get rid of some duplicate boilerplate. Through out my app, I need to confirm certain things, like deleting. So I have something like this...so far...See the comments in the live click event for what I actually need to do.

 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if you add the two values as parameter to showConfirmDialog method and pass it to the callback (I'm no javascript guru so this might be a wrong solution)

Edit: I'm completely sure now that this post is useless, changing the parameters of showConfirmDialog/confirmRemoveMember must not be a choice...
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, because not everything I use a confirm for uses those parameters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic