[FIX] board: edit an event
if parent of the search view is destroyed, the title is undefined. opw:644769, 646575
This commit is contained in:
committed by
Nicolas Martinelli
parent
e4a93776b3
commit
28ff2e9585
@@ -331,7 +331,7 @@ instance.web.search.FavoriteMenu.include({
|
||||
this.$add_dashboard_btn = $add_to_dashboard.eq(2).find('button');
|
||||
this.$add_dashboard_input = $add_to_dashboard.eq(1).find('input');
|
||||
this.$add_dashboard_link = $add_to_dashboard.first();
|
||||
var title = this.searchview.getParent().title;
|
||||
var title = this.searchview.getParent() && this.searchview.getParent().title;
|
||||
this.$add_dashboard_input.val(title);
|
||||
this.$add_dashboard_link.click(function () {
|
||||
self.toggle_dashboard_menu();
|
||||
|
||||
Reference in New Issue
Block a user