mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
cd2c9edb46
- FIX: make sure we set a default name to a pasted image only on Chrome (the only browser that supports it)
- FIX: use ".json" extension to uploads endpoints since IE9 doesn't pass the correct header
- FIX: pass the CSRF token in a query parameter since IE9 doesn't pass it in the headers
- FIX: display error messages comming from the server when there is one over the default error message
- FIX: HACK around IE9 security issue when clicking a file input via JavaScript (use a label and set `visibility:hidden` on the input)
- FIX: hide the "cancel" upload on IE9 since it's not supported
- FIX: return "text/plain" content-type when uploading a file for IE9 in order to prevent it from displaying the save dialog
- FIX: check the maximum file size on the server 💥
- update jQuery File Upload Plugin to v. 5.42.2
- update JQuery IFram Transport Plugin to v. 1.8.5
- update jQuery UI Widget to v. 1.11.1
42 lines
687 B
SCSS
42 lines
687 B
SCSS
.upload-selector {
|
|
label {
|
|
display: inline-block;
|
|
padding-left: 10px;
|
|
}
|
|
.radios {
|
|
height: 60px;
|
|
.inputs {
|
|
float: right;
|
|
width: 75%;
|
|
input {
|
|
width: 90%;
|
|
margin: 0 0 5px 0;
|
|
}
|
|
input[type="file"] {
|
|
font-size: 1em;
|
|
line-height: 18px;
|
|
}
|
|
.description, .hint {
|
|
color: scale-color($primary, $lightness: 50%);
|
|
}
|
|
.hint {
|
|
font-style: italic;
|
|
margin: 5px 0 0 0;
|
|
}
|
|
}
|
|
}
|
|
.radios:last-child {
|
|
height: 20px;
|
|
}
|
|
}
|
|
|
|
.uploaded-image-preview {
|
|
height: 270px;
|
|
}
|
|
|
|
.image-upload-controls {
|
|
padding: 10px;
|
|
label.btn {
|
|
padding: 7px 10px 5px 10px;
|
|
}
|
|
}
|