Guest User

Untitled

a guest
Jan 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. $("#deleteDialog").dialog({
  2. autoOpen: false,
  3. height: 175,
  4. width: 325,
  5. modal: true,
  6. buttons: {
  7. Delete: function(mode) {
  8. if(mode == 'project'){
  9. DeleteProject(ProjectID, $('#<%= this.Master.FindControl("lblUserID").ClientID %>').text());
  10. $('#lblProjectNumber').text('');
  11.  
  12. $(this).dialog('close');
  13.  
  14. location.assign(location.href);
  15. }
  16. else if (mode == 'drawing')
  17. {
  18. DeleteDrawing(DrawingID, $('#<%= this.Master.FindControl("lblUserID").ClientID %>').text());
  19.  
  20. }
  21. },
  22. Cancel: function() {
  23. $(this).dialog('close');
  24. }
  25. },
  26. close: function() {
  27.  
  28. $('select:not(#deletetDialog select)').show();
  29. },
  30. open: function() {
  31. $('select:not(#deleteDialog select)').hide();
  32.  
  33. }
  34. });
Add Comment
Please, Sign In to add comment