diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index a2330e10a..96abab1c3 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; - }; } },