From 18767ad588819dbaeb00333ee3ee06348e2d201f Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 20 Apr 2018 16:15:06 +0300 Subject: [PATCH] Fix Bug 37536 (window is closed before input field update it's value) --- apps/common/main/lib/view/OpenDialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index a2330e10a6..96abab1c34 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -154,11 +154,11 @@ define([ } else { this.initCodePages(); this.updatePreview(); + this.onPrimary = function() { + me._handleInput('ok'); + return false; + }; } - this.onPrimary = function() { - me._handleInput('ok'); - return false; - }; } },