Mercurial > hg > orthanc
comparison OrthancExplorer/explorer.js @ 2929:e0c620f964e5
Go back to lookup if deleting a resource without an ancestor
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Nov 2018 12:01:12 +0100 |
parents | 67ebfacf4467 |
children | c9c2faf76bec |
comparison
equal
deleted
inserted
replaced
2928:85999ed092c5 | 2929:e0c620f964e5 |
---|---|
837 dataType: 'json', | 837 dataType: 'json', |
838 async: false, | 838 async: false, |
839 success: function(s) { | 839 success: function(s) { |
840 var ancestor = s.RemainingAncestor; | 840 var ancestor = s.RemainingAncestor; |
841 if (ancestor == null) | 841 if (ancestor == null) |
842 $.mobile.changePage('#find-patients'); | 842 $.mobile.changePage('#lookup'); |
843 else | 843 else |
844 $.mobile.changePage('#' + ancestor.Type.toLowerCase() + '?uuid=' + ancestor.ID); | 844 $.mobile.changePage('#' + ancestor.Type.toLowerCase() + '?uuid=' + ancestor.ID); |
845 } | 845 } |
846 }); | 846 }); |
847 } | 847 } |