// All the code here is targeted to the notes section of the web site.

// So far only applies to the delete note link in Lifenotes
jQuery.fn.warnBeforeDelete = function() {
  this.hover(function() {
		$(this).append(" permanently?").css({ 'font-size' : '1.5em', 'font-weight' : 'bold'});
	}, function() {
		$(this).text("Delete note").css({'font-size' : '1em', 'font-weight' : 'normal'});
	});
};

// Wait for the DOM to be loaded
$(document).ready(function() {
	
	// Warn the user visually before deleting a note
	$(".remote_delete").warnBeforeDelete();
		
});
