Files @ 368fc07f6feb
Branch filter:

Location: website/www/conservancy/static/js/jquery.outerhtml.js

bkuhn
Switch link to be all blog posts on ContractPatch

Step 3 in backport of unversioned changes from Brett done in
01ab5892ba0f6c18f2d3eb001c3a88d2e45435d7.
/*
 * jQuery outerHTML
 *
 * Copyright (c) 2008 Ca-Phun Ung <caphun at yelotofu dot com>
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://yelotofu.com/labs/jquery/snippets/outerhtml/
 *
 * outerHTML is based on the outerHTML work done by Brandon Aaron
 * But adds the ability to replace an element.
 */

(function($) {
	$.fn.outerHTML = function(s) {
		return (s) 
			? this.before(s).remove() 
			: $('<p>').append(this.eq(0).clone()).html();
	}
})(jQuery);