Skip to content

Commit

Permalink
Add missing semicolons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick McElhaney committed Dec 23, 2011
1 parent 4066d31 commit c5c824e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.slugify.js
Expand Up @@ -23,20 +23,20 @@
return v.replace(/'/g, '').replace(/\s*&\s*/g, ' and ').replace(/[^A-Za-z0-9]+/g, '-').replace(/^-|-$/g, '').toLowerCase();
})
);
}
};

var setLock = function () {
if($target.val() != null && $target.val() != '') {
$target.addClass('slugify-locked');
} else {
$target.removeClass('slugify-locked');
}
}
};

var updateSlug = function () {
var slug = convertToSlug($(this).val());
$target.filter(':not(.slugify-locked)').val(slug).text(slug);
}
};


$source.keyup( updateSlug ).change( updateSlug );
Expand Down

0 comments on commit c5c824e

Please sign in to comment.