Skip to content

Commit f7d074f

Browse files
authored
Merge pull request #201 from paviliondev/file-upload-test
Fix manager fix uploads
2 parents e59d12b + 8168003 commit f7d074f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default Controller.extend({
6868
file: null,
6969
filename: null,
7070
});
71-
$("#file-upload").val("");
71+
document.getElementById("custom-wizard-file-upload").value = "";
7272
},
7373

7474
@observes("importing", "destroying")
@@ -83,7 +83,7 @@ export default Controller.extend({
8383

8484
actions: {
8585
upload() {
86-
$("#file-upload").click();
86+
document.getElementById("custom-wizard-file-upload").click();
8787
},
8888

8989
clearFile() {
@@ -102,7 +102,7 @@ export default Controller.extend({
102102
if (maxFileSize < file.size) {
103103
this.setMessage("error", "file_size_error");
104104
this.set("file", null);
105-
$("#file-upload").val("");
105+
document.getElementById("custom-wizard-file-upload").value = "";
106106
} else {
107107
this.setProperties({
108108
file,

assets/javascripts/discourse/templates/admin-wizards-manager.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{/if}}
1313

1414
{{input
15-
id="file-upload"
15+
id="custom-wizard-file-upload"
1616
type="file"
1717
accept="application/json"
1818
input=(action "setFile")}}

assets/stylesheets/common/wizard-manager.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
}
2828

29-
#file-upload {
29+
#custom-wizard-file-upload {
3030
display: none;
3131
}
3232

plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
# name: discourse-custom-wizard
33
# about: Create custom wizards
4-
# version: 1.22.4
4+
# version: 1.22.5
55
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George
66
# url: https://github.com/paviliondev/discourse-custom-wizard
77
# contact_emails: development@pavilion.tech

0 commit comments

Comments
 (0)