From 821c8474c57e726864b1494203805a50fba5daaf Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 14 Apr 2020 14:13:19 -0600 Subject: [PATCH] Fix link from VFS dialog did not open --- api/js/etemplate/et2_widget_vfs.js | 2 +- api/js/etemplate/et2_widget_vfs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index 2a02b91c25..3447f0bcb6 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -1063,7 +1063,7 @@ var et2_vfsSelect = /** @class */ (function (_super) { image: _data.content.mode.match(/saveas|select-dir/) ? "save" : this.options.button_icon } ]; - var extra_buttons_action; + var extra_buttons_action = {}; if (this.options.extra_buttons && this.options.method) { for (var i = 0; i < this.options.extra_buttons.length; i++) { delete (this.options.extra_buttons[i]['click']); diff --git a/api/js/etemplate/et2_widget_vfs.ts b/api/js/etemplate/et2_widget_vfs.ts index 3a5c79d151..f16b165bbd 100644 --- a/api/js/etemplate/et2_widget_vfs.ts +++ b/api/js/etemplate/et2_widget_vfs.ts @@ -1291,7 +1291,7 @@ export class et2_vfsSelect extends et2_inputWidget image: _data.content.mode.match(/saveas|select-dir/) ? "save" : this.options.button_icon } ]; - let extra_buttons_action; + let extra_buttons_action = {}; if (this.options.extra_buttons && this.options.method) {