From d112f39031fb0460f94e456362fe55ea36763308 Mon Sep 17 00:00:00 2001 From: riking Date: Tue, 19 May 2015 18:35:16 -0700 Subject: [PATCH] Change extension back to .dcstyle.json --- .../javascripts/discourse/components/json-file-uploader.js.es6 | 2 +- .../discourse/templates/modal/upload-customization.hbs | 2 +- app/controllers/admin/site_customizations_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/components/json-file-uploader.js.es6 b/app/assets/javascripts/discourse/components/json-file-uploader.js.es6 index fc0bf7bd6b2..c86784ca2e7 100644 --- a/app/assets/javascripts/discourse/components/json-file-uploader.js.es6 +++ b/app/assets/javascripts/discourse/components/json-file-uploader.js.es6 @@ -45,7 +45,7 @@ export default Em.Component.extend({ }.on('didInsertElement'), accept: function() { - return ".json,application/json" + (this.get('extension') ? "," + this.get('extension') : ""); + return ".json,application/json,application/x-javascript,text/json" + (this.get('extension') ? "," + this.get('extension') : ""); }.property('extension'), setReady: function() { diff --git a/app/assets/javascripts/discourse/templates/modal/upload-customization.hbs b/app/assets/javascripts/discourse/templates/modal/upload-customization.hbs index 3e49a755e5a..6d5d53e5bbf 100644 --- a/app/assets/javascripts/discourse/templates/modal/upload-customization.hbs +++ b/app/assets/javascripts/discourse/templates/modal/upload-customization.hbs @@ -1,6 +1,6 @@