[minor] [form] don't switch views if same

This commit is contained in:
Rushabh Mehta 2015-05-28 10:50:57 +05:30
parent 52415d4538
commit ea70d5ac84

View file

@ -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];