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

@ -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('');
};

View File

@ -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);