Fixing client-side jslint exclude

- Gruntfile had an exclude for all of client/assets rather than client/assets/vendor
- Fixes missed jsLint errors
This commit is contained in:
Hannah Wolfe 2013-10-22 22:05:56 +01:00
parent 584a6bfd73
commit 9bf0f5a2aa
2 changed files with 5 additions and 7 deletions

View File

@ -6,8 +6,7 @@
UploadUi = function ($dropzone, settings) { UploadUi = function ($dropzone, settings) {
var source, var $url = '<div class="js-url"><input class="url js-upload-url" type="url" placeholder="http://"/></div>',
$url = '<div class="js-url"><input class="url js-upload-url" type="url" placeholder="http://"/></div>',
$cancel = '<a class="image-cancel js-cancel"><span class="hidden">Delete</span></a>', $cancel = '<a class="image-cancel js-cancel"><span class="hidden">Delete</span></a>',
$progress = $('<div />', { $progress = $('<div />', {
"class" : "js-upload-progress progress progress-success active", "class" : "js-upload-progress progress progress-success active",
@ -184,9 +183,8 @@
}); });
}, },
initWithImage: function () { initWithImage: function () {
var self = this, val; var self = this;
// This is the start point if an image already exists // This is the start point if an image already exists
source = $dropzone.find('img.js-upload-target').attr('src');
$dropzone.removeClass('image-uploader image-uploader-url').addClass('pre-image-uploader'); $dropzone.removeClass('image-uploader image-uploader-url').addClass('pre-image-uploader');
$dropzone.find('div.description').hide(); $dropzone.find('div.description').hide();
$dropzone.append($cancel); $dropzone.append($cancel);