mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 16:38:22 +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
ghost/admin/assets/lib/jquery-utils.js
vendored
6
ghost/admin/assets/lib/jquery-utils.js
vendored
@ -70,7 +70,7 @@
|
||||
if (this.css('-ms-transtion-duration')) {
|
||||
return Math.round(parseFloat(this.css('-ms-transtion-duration')) * 1000);
|
||||
}
|
||||
|
||||
|
||||
if (this.css('-moz-transtion-duration')) {
|
||||
return Math.round(parseFloat(this.css('-moz-transtion-duration')) * 1000);
|
||||
}
|
||||
@ -161,12 +161,12 @@
|
||||
/**
|
||||
* Adds appropriate inflection for pluralizing the singular form of a word when appropriate.
|
||||
* This is an overly simplistic implementation that does not handle irregular plurals.
|
||||
* @param {Number} count
|
||||
* @param {Number} count
|
||||
* @param {String} singularWord
|
||||
* @returns {String}
|
||||
*/
|
||||
$.pluralize = function inflect(count, singularWord) {
|
||||
var base = [count, ' ', singularWord];
|
||||
var base = [count, ' ', singularWord];
|
||||
|
||||
return (count === 1) ? base.join('') : base.concat('s').join('');
|
||||
};
|
||||
|
@ -6,8 +6,7 @@
|
||||
|
||||
|
||||
UploadUi = function ($dropzone, settings) {
|
||||
var source,
|
||||
$url = '<div class="js-url"><input class="url js-upload-url" type="url" placeholder="http://"/></div>',
|
||||
var $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>',
|
||||
$progress = $('<div />', {
|
||||
"class" : "js-upload-progress progress progress-success active",
|
||||
@ -184,9 +183,8 @@
|
||||
});
|
||||
},
|
||||
initWithImage: function () {
|
||||
var self = this, val;
|
||||
var self = this;
|
||||
// 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.find('div.description').hide();
|
||||
$dropzone.append($cancel);
|
||||
|
Loading…
Reference in New Issue
Block a user