From 9ad155d66d3413fec54fe46114008bd25511a148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20MAGIS?= Date: Mon, 18 May 2015 09:55:15 +1100 Subject: [PATCH] Rename import method to importFile --- Widget.html | 2 ++ Widget.js | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Widget.html b/Widget.html index 19de7dc..920cc16 100644 --- a/Widget.html +++ b/Widget.html @@ -140,6 +140,8 @@

${nls.importTitle}

+ +
diff --git a/Widget.js b/Widget.js index a99036c..cab0fc7 100644 --- a/Widget.js +++ b/Widget.js @@ -617,13 +617,13 @@ define([ ///////////////////////// IMPORT/EXPORT METHODS /////////////////////////////////////////////////////////// - import : function () { + importFile : function () { if (!window.FileReader) { this.showMessage(this.nls.importErrorMessageNavigator, 'error'); return false; } - var input = this.importFile.files[0]; + var input = this.importFileInput.files[0]; if (!input) { this.showMessage(this.nls.importErrorWarningSelectFile, 'warning'); @@ -712,6 +712,7 @@ define([ var content = evt.target.result; this.importJsonContent(content); this.importFile.files[0] = ""; + this.importFileInput.files[0] = ""; }, export : function () {