[formview] [route] join rest of the route with a slash(/)

This commit is contained in:
Anand Doshi 2013-06-11 14:13:53 +05:30
parent fb9bd94064
commit c209b4b27c
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ wn.views.DocListView = wn.ui.Listing.extend({
me.filter_list.clear_filters();
$.each(wn.route_options, function(key, value) {
me.filter_list.add_filter(me.doctype, key, "=", value);
})
});
wn.route_options = null;
me.run();
} else if(me.dirty) {

View file

@ -21,7 +21,7 @@ wn.views.FormFactory = wn.views.Factory.extend({
},
show_doc: function(route) {
var dt = route[1],
dn = route[2],
dn = route.slice(2).join("/"),
me = this;
if(wn.model.new_names[dn]) {