[formview] [route] join rest of the route with a slash(/)
This commit is contained in:
parent
fb9bd94064
commit
c209b4b27c
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue