diff --git a/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 index 7228d164..4565820c 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 @@ -68,7 +68,7 @@ export default Controller.extend({ file: null, filename: null, }); - $("#file-upload").val(""); + document.getElementById("custom-wizard-file-upload").value = ""; }, @observes("importing", "destroying") @@ -83,7 +83,7 @@ export default Controller.extend({ actions: { upload() { - $("#file-upload").click(); + document.getElementById("custom-wizard-file-upload").click(); }, clearFile() { @@ -102,7 +102,7 @@ export default Controller.extend({ if (maxFileSize < file.size) { this.setMessage("error", "file_size_error"); this.set("file", null); - $("#file-upload").val(""); + document.getElementById("custom-wizard-file-upload").value = ""; } else { this.setProperties({ file, diff --git a/assets/javascripts/discourse/templates/admin-wizards-manager.hbs b/assets/javascripts/discourse/templates/admin-wizards-manager.hbs index 0cfb8fde..4b91bd3d 100644 --- a/assets/javascripts/discourse/templates/admin-wizards-manager.hbs +++ b/assets/javascripts/discourse/templates/admin-wizards-manager.hbs @@ -12,7 +12,7 @@ {{/if}} {{input - id="file-upload" + id="custom-wizard-file-upload" type="file" accept="application/json" input=(action "setFile")}} diff --git a/assets/stylesheets/common/wizard-manager.scss b/assets/stylesheets/common/wizard-manager.scss index a3b30c98..b8df732f 100644 --- a/assets/stylesheets/common/wizard-manager.scss +++ b/assets/stylesheets/common/wizard-manager.scss @@ -26,7 +26,7 @@ } } - #file-upload { + #custom-wizard-file-upload { display: none; } diff --git a/plugin.rb b/plugin.rb index c3efeb7b..a953dc08 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Create custom wizards -# version: 1.22.4 +# version: 1.22.5 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech