Advertisement
Guest User

if

a guest
Sep 14th, 2011
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ///////What I think///////
  2. if (reason != null && reason != '') {
  3. $j("#voidRelationship").dialog("close");
  4. DWRRelationshipService.voidRelationship(relId, reason, refreshRelationships);
  5. }
  6. else if (reason == null || reason == ''){
  7. $j("#relationship_empty_reason").show();
  8. }
  9.  
  10.  
  11.  
  12. /////////Original ///////
  13.  
  14. if (reason != null && reason != '') {
  15. + $j("#voidRelationship").dialog("close");
  16. DWRRelationshipService.voidRelationship(relId, reason, refreshRelationships);
  17. }
  18. + else{
  19. + $j("#relationship_empty_reason").show();
  20. + }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement