Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <script>
  2.  
  3. function confirmTransfer() {
  4. var tasks = "{!totalTasks}";
  5. var matches = "{!totalMatches}";
  6. var contacts = "{!totalContacts}";
  7.  
  8. var transfer = confirm("Are you sure you wish to transfer: " +
  9. tasks + " tasks, " + matches + " matches, and " + contacts " contacts?");
  10.  
  11. if (transfer) return true;
  12. return false;
  13. }
  14.  
  15. function confirmCancel() {
  16. var isCancel = confirm("Are you sure you wish to cancel?");
  17. if (isCancel) return true;
  18.  
  19. return false;
  20. }
  21. </script>
  22.  
  23. <apex:commandButton action="{!cancel}" value="Cancel"
  24. onclick="return confirmCancel()"immediate="true"/>
  25. <apex:commandButton action="{!step4}" value="Transfer"
  26. onclick="return confirmTransfer()" immediate="true"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement