/**
 * Links
 *
 * for LinksController
 */
var Links = {};

/**
 * Create slugs based on title field
 *
 * @return void
 */
Links.slug = function() {
	$("#LinkTitle").slug({
		slug: 'class',
		hide: false
	});
}

/**
 * document ready
 *
 * @return void
 */
$(document).ready(function() {
	if (Bemmelhor.params.controller == 'links') {
		if (['admin_add', 'admin_edit'].indexOf(Bemmelhor.params.action) >= 0) {
			Links.slug();
		}
	}
});
