Skip to content

Commit

Permalink
BUGFIX: SSF-38 fixing the "Choose files from your computer" upload field
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Seidenberg committed Apr 4, 2012
1 parent 875eef9 commit 7f8a682
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions admin/css/screen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions admin/scss/_style.scss
Expand Up @@ -1343,6 +1343,10 @@ body.cms-dialog {
}
}

.ss-uploadfield-editandorganize {
display: none;
}

// TODO Consolidate with .assetuploadfield and .ss-uploadfield styles
.ss-htmleditorfield-file {
border: 1px solid lighten($color-medium-separator, 20%);
Expand Down
9 changes: 2 additions & 7 deletions javascript/HtmlEditorField.js
Expand Up @@ -700,13 +700,8 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
* Show the second step after uploading an image
*/
$('form.htmleditorfield-form.htmleditorfield-mediaform div.ss-assetuploadfield').entwine({
onmatch: function() {
this._super();

// Always hide the "second step" part, we don't need it here
this.find('.ss-uploadfield-editandorganize').hide();

},
//the UploadField div.ss-uploadfield-editandorganize is hidden in CSS,
// because we use the detail view for each individual file instead
onfileuploadstop: function(e) {
var form = this.closest('form');

Expand Down

0 comments on commit 7f8a682

Please sign in to comment.