Skip to content

Commit

Permalink
[#1788]: Glitchfixing deprecated method calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
teajaymars committed Mar 30, 2012
1 parent 60e1fff commit ab8c55f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/public/scripts/application.js
Expand Up @@ -806,13 +806,12 @@ CKAN.View.ResourceAddUpload = Backbone.View.extend({
error: function(model, error) {
var msg = 'Filed uploaded OK but error adding resource: ' + error + '.';
msg += 'You may need to create a resource directly. Uploaded file at: ' + data._location;
CKAN.View.flash(msg, 'error');
self.setMessage(msg, 'error');
}
}
);
self.collection.add(newResource);
self.setMessage('File uploaded OK and resource added', 'success');
CKAN.View.flash('File uploaded OK and resource added');
}
});
},
Expand Down

0 comments on commit ab8c55f

Please sign in to comment.