add_view should set the current_view
This commit is contained in:
1 parent
76e0b1a15d
commit
aa09cdde71
2 files changed
+5
-3
No files matched your search
@@ -62,6 +62,10 @@
|
||||
this.model.add_fields(fields);
|
||||
var view_widget = Sao.View.parse(this, xml_view, view.field_childs);
|
||||
this.views.push(view_widget);
|
||||
|
||||
this.current_view = view_widget;
|
||||
this.el.remove();
|
||||
this.el.append(view_widget.el);
|
||||
return view_widget;
|
||||
},
|
||||
number_of_views: function() {
|
||||
|
||||
+1
-3
@@ -38,9 +38,7 @@
|
||||
'class': 'form'
|
||||
});
|
||||
this.el = el;
|
||||
this.screen.load_next_view().pipe(function() {
|
||||
return screen.switch_view();
|
||||
}).done(function() {
|
||||
this.screen.load_next_view().done(function() {
|
||||
el.html(screen.el);
|
||||
}).done(function() {
|
||||
screen.search_filter().done(function() {
|
||||
|
||||
Reference in new issue
Block a user