Fix vfsSelect extra buttons sometimes failing to close the dialog after execution

This commit is contained in:
Hadi Nategh 2018-04-04 17:51:31 +02:00
parent 3327077cec
commit b8fd2f9c97

View File

@ -1037,6 +1037,7 @@ var et2_vfsSelect = (function(){ "use strict"; return et2_inputWidget.extend(
var extra_buttons_action = [];
for (var i=0; i < this.options.extra_buttons.length; i++)
{
delete(this.options.extra_buttons[i]['click']);
buttons.push(this.options.extra_buttons[i]);
extra_buttons_action[this.options.extra_buttons[i]['id']] = this.options.extra_buttons[i]['id'];
}
@ -1093,6 +1094,7 @@ var et2_vfsSelect = (function(){ "use strict"; return et2_inputWidget.extend(
jQuery(self.node).change();
}
delete app.vfsSelectUI;
return true;
}
},
title: this.options.dialog_title,