/**
 * Edit link plugin
 * --------------------------------------------------
 * 
 * File: jquery.editlink.js
 * Author: DPH+Co
 * Author URI: dge@dphco
 * Created:
 * Modified:
 */

(function($) {
	/**
	 * Public method to edit a link
	 * 
	 * @param object options. An optional object overriding the default options
	 */
	$.fn.editLink = function(options) {
		/**
		 * Default options
		 */
		var settings = $.extend({
		}, options);
		
		return this.each(function() {
			$(this).click(function() {
				var title = $(this).prev('a').children('span').text();
				var $textInput = $(this).parents('div.inner').find('input:text').val(title);
				
				return false;
			});
		});
	};
})(jQuery);
