Skip to content

Commit

Permalink
Fixing issues found in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoguen committed Dec 14, 2011
1 parent 5537176 commit 6f780fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/fileuploader.js
Expand Up @@ -526,8 +526,8 @@ qq.FileUploader = function(o){
'<span class="#{this.classes.file}"></span>' +
'<span class="#{this.classes.spinner}"></span>' +
'<span class="#{this.classes.size}"></span>' +
'<a class="#{this.classes.cancel}" href="#">#{this.cancel}</a>' +
'<span class="qq-upload-failed-text">#{this.failed}</span>' +
'<a class="#{this.classes.cancel}" href="#">#{this.labels.cancel}</a>' +
'<span class="qq-upload-failed-text">#{this.labels.failed}</span>' +
'</li>'),

classes: {
Expand Down Expand Up @@ -664,6 +664,7 @@ qq.extend(qq.FileUploader.prototype, {
_addToList: function(id, fileName){
var item = qq.toElement(this._options.fileTemplate(this._options));
item.qqFileId = id;
item.id = 'qq-file-upload-' + id;

var fileElement = this._find(item, 'file');
qq.setText(fileElement, this._formatFileName(fileName));
Expand Down Expand Up @@ -1157,7 +1158,7 @@ qq.extend(qq.UploadHandlerForm.prototype, {

try {
if(window.JSON) {
response = JSON.parse("(" + json + ")");
response = JSON.parse(json);
}
else {
response = eval("(" + json + ")");
Expand Down Expand Up @@ -1345,7 +1346,7 @@ qq.extend(qq.UploadHandlerXhr.prototype, {

try {
if(window.JSON) {
response = JSON.parse("(" + xhr.responseText + ")");
response = JSON.parse(xhr.responseText);
}
else {
response = eval("(" + xhr.responseText + ")");
Expand Down

0 comments on commit 6f780fe

Please sign in to comment.