comparison OrthancExplorer/explorer.js @ 201:bee20e978835

refactoring of delete
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Nov 2012 17:36:19 +0100
parents f2ae23682353
children f23318b11b39
comparison
equal deleted inserted replaced
200:9c58b2b03cf0 201:bee20e978835
555 success: function(s) { 555 success: function(s) {
556 var ancestor = s.RemainingAncestor; 556 var ancestor = s.RemainingAncestor;
557 if (ancestor == null) 557 if (ancestor == null)
558 $.mobile.changePage('#find-patients'); 558 $.mobile.changePage('#find-patients');
559 else 559 else
560 $.mobile.changePage('#' + ancestor.Type + '?uuid=' + ancestor.ID); 560 $.mobile.changePage('#' + ancestor.Type.toLowerCase() + '?uuid=' + ancestor.ID);
561 } 561 }
562 }); 562 });
563 } 563 }
564 564
565 565