Commit bdb463e0 authored by Marc Duez's avatar Marc Duez

database.js : debug reload() (if anything have been loaded previously)

parent 436ab1df
......@@ -262,9 +262,13 @@ Database.prototype = {
/*reload the current db page*/
reload: function(){
url = this.url[this.url.length-1]
this.callUrl(url)
this.url.pop()
if (this.url.length==0){
this.call('patient/index')
}else{
url = this.url[this.url.length-1]
this.callUrl(url)
this.url.pop()
}
},
back: function(){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment