weird IOs hack to make the upload button work
This commit is contained in:
parent
707f4f9a58
commit
908c4ce8e6
|
@ -13,6 +13,14 @@ export default ModalBodyView.extend({
|
|||
title: function() { return uploadTranslate("title"); }.property(),
|
||||
uploadIcon: function() { return Discourse.Utilities.allowsAttachments() ? "fa-upload" : "fa-picture-o"; }.property(),
|
||||
|
||||
touchStart: function(evt) {
|
||||
// HACK: workaround Safari iOS being really weird and not shipping click events
|
||||
// should be fairly harmless on other touch devices
|
||||
if (evt.target.id === "filename-input") {
|
||||
this.$('#filename-input').click();
|
||||
}
|
||||
},
|
||||
|
||||
tip: function() {
|
||||
const source = this.get("controller.local") ? "local" : "remote",
|
||||
opts = { authorized_extensions: Discourse.Utilities.authorizedExtensions() };
|
||||
|
|
Loading…
Reference in New Issue