mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 11:30:55 +03:00
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:
parent
584a6bfd73
commit
9bf0f5a2aa
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user