[minor] [form] don't switch views if same
This commit is contained in:
parent
52415d4538
commit
ea70d5ac84
1 changed files with 2 additions and 0 deletions
|
|
@ -365,6 +365,8 @@ frappe.ui.Page = Class.extend({
|
|||
return this.views[name];
|
||||
},
|
||||
set_view: function(name) {
|
||||
if(this.current_view_name===name)
|
||||
return;
|
||||
this.current_view && this.current_view.toggle(false);
|
||||
this.current_view = this.views[name];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue