Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit ba625a01c464c57cf71f4d1346195b5276853ed2 1 parent 7301fc4
Josh Holt authored March 22, 2011 etgryphon committed April 10, 2011

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  frameworks/foundation/views/upload.js
5  frameworks/foundation/views/upload.js
@@ -81,8 +81,7 @@ SCUI.UploadView = SC.View.extend(
81 81
       this._firstTime = YES;
82 82
       
83 83
       if (cssImageClass) {
84  
-                
85  
-        context .begin('form')
  84
+        context.begin('form')
86 85
                   .attr('method', 'post')
87 86
                   .attr('enctype', 'multipart/form-data')
88 87
                   .attr('action', uploadTarget)
@@ -97,7 +96,7 @@ SCUI.UploadView = SC.View.extend(
97 96
                     .begin('input')
98 97
                       .attr('type', 'file')
99 98
                       .attr('name', inputName)
100  
-                      .styles({ 'position': 'relative',
  99
+                      .addStyle({ 'position': 'relative',
101 100
                                 'height': '100%',
102 101
                                 'width': 'auto',
103 102
                                 'opacity': '0',

0 notes on commit ba625a0

Please sign in to comment.
Something went wrong with that request. Please try again.