Permalink
Browse files

Fixing rendering for that case of using and image for the uploader

  • Loading branch information...
1 parent 7301fc4 commit ba625a01c464c57cf71f4d1346195b5276853ed2 @joshholt joshholt committed with etgryphon Mar 22, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 frameworks/foundation/views/upload.js
View
5 frameworks/foundation/views/upload.js
@@ -81,8 +81,7 @@ SCUI.UploadView = SC.View.extend(
this._firstTime = YES;
if (cssImageClass) {
-
- context .begin('form')
+ context.begin('form')
.attr('method', 'post')
.attr('enctype', 'multipart/form-data')
.attr('action', uploadTarget)
@@ -97,7 +96,7 @@ SCUI.UploadView = SC.View.extend(
.begin('input')
.attr('type', 'file')
.attr('name', inputName)
- .styles({ 'position': 'relative',
+ .addStyle({ 'position': 'relative',
'height': '100%',
'width': 'auto',
'opacity': '0',

0 comments on commit ba625a0

Please sign in to comment.