<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -116,5 +116,6 @@
       &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js&quot;&gt;&lt;/script&gt;
       &lt;script src=&quot;javascript/jquery/jquery.scrollTo-min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
       &lt;script src=&quot;javascript/jquery/encouraged-commentary-min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+      &lt;p&gt;THIS ELEMENT SHOULD ALWAYS PRINT LAST.&lt;/p&gt;
    &lt;/body&gt;
 &lt;/html&gt;
\ No newline at end of file</diff>
      <filename>demo.html</filename>
    </modified>
    <modified>
      <diff>@@ -12,4 +12,4 @@
 * Source:
 * http://github.com/jimjeffers/encouraged-commentary/tree/master
 */
-var form;var commentList;var lightbox;var lightboxBackground;var quote;var preview;var noLightbox;var noPreview;var sortedCommentary;var noRelatives;var noReplies;var noQuoteControl;var noReplyControl;$(document).ready(function(){form=$('.encouraged-form').get(0);if(form){form=$(form)}else{form=false}commentList=$($('.commentlist').get(0));sortedCommentary=commentList.hasClass('sorted-commentary');noRelatives=commentList.hasClass('no-relatives');noReplies=commentList.hasClass('no-replies');noPreview=commentList.hasClass('no-preview');noQuoteControl=commentList.hasClass('no-quote-control');noReplyControl=commentList.hasClass('no-reply-control');noLightbox=commentList.hasClass('no-lightbox');$(document.body).append(&quot;&lt;span id=\&quot;comment-respond\&quot;&gt;Respond&lt;/span&gt;&quot;);var j=$('#comment-respond');j.css('position','absolute');j.fadeTo(10,0);var k=&quot;&quot;;var l=&quot;&quot;;$('.commentlist &gt; .comment, .quotable').each(function(){$(this).mouseup(function(e){j.css('top',e.pageY+10);j.css('left',e.pageX+10);if(getSelText()){j.show();j.fadeTo(&quot;normal&quot;,0.3);var a=findCommentFor(e.target);if(a){k=findPermalinkFor(a).href;l=findAuthorFor(a).text}else{k=false;l=false}quote=getSelText()}})});j.hover(function(){$(this).fadeTo(&quot;fast&quot;,1)},function(){$(this).fadeTo(&quot;fast&quot;,0.3)});j.mousedown(function(e){var a=&quot;&quot;;if(k&amp;&amp;l){a=&quot;&lt;p&gt;&lt;a href=\&quot;&quot;+k+&quot;\&quot;&gt;@&quot;+l+&quot;&lt;/a&gt;:&lt;/p&gt;\n&quot;}quote=a+&quot;&lt;blockquote&gt;&quot;+quote+&quot;&lt;/blockquote&gt;\n&lt;p&gt;\n&quot;;if(noLightbox||!form){if(!form){$('#comment').val(quote+&quot;&lt;!-- Start your comment below this line. --&gt;\n\n&lt;/p&gt;&quot;)}$.scrollTo('#comment',{duration:1000})}else{setupLightbox()}if(!noPreview){preview.html(quote)}addOrShowDeleteQuoteControl(a);$(this).fadeTo(1,0);j.hide()});$(document.body).mousedown(function(){j.hide()});$('.commentlist .comment a').click(function(e){var a=getAnchor(this.href);if($('.commentlist '+a).length&gt;0){setCurrentComment(a);$.scrollTo(a,{duration:1000});return false}});var m=new Array();var n=new Array();$('.commentlist .comment p:first-child a:first-child').each(function(){if($(this).text().substring(1,-1)==&quot;@&quot;){var a=$(this).text().substring(1,$(this).text().length);var b=findCommentFor(this);var c=findAuthorFor(b);var d=findPermalinkFor(b);var e=getAnchor(this.href);var f='&lt;a href=&quot;'+d.href+'&quot;&gt;'+c.innerHTML+'&lt;/a&gt;';var g=$('.commentlist #'+e.substr(1,e.length));if(g.length&gt;0&amp;&amp;sortedCommentary){$(g.get(0)).after(b.addClass('response'))}if(!n[e]){n[e]=new Array(f)}else{n[e][n[e].length]=f}}});var o='';if(!noQuoteControl){o+='&lt;a href=&quot;#&quot; class=&quot;comment-quote&quot;&gt;Quote&lt;/a&gt;'}if(!noReplyControl){o+='&lt;a href=&quot;#&quot; class=&quot;comment-reply&quot;&gt;Reply&lt;/a&gt;'}$('.commentlist &gt; .comment').each(function(){var c=findAuthorFor(this);var d=findPermalinkFor(this);var f=getAnchor(d.href);var g='&lt;a href=&quot;'+d.href+'&quot;&gt;'+d.innerHTML+'&lt;/a&gt;';if(!m[c.text]){m[c.text]=new Array(g)}else{m[c.text][m[c.text].length]=g}$(this).append('&lt;div class=&quot;comment-controls&quot;&gt;'+o+'&lt;/div&gt;');$(this).find('.comment-reply, .comment-quote').each(function(){if($(this).hasClass('comment-reply')){$(this).click(function(e){setupComment(this,false);return false})}if($(this).hasClass('comment-quote')){$(this).click(function(e){setupComment(this,true);return false})}});var h=false;var i=$($(this).find('.comment-controls'));i.hide();$(this).hover(function(){if(m[c.text].length&gt;1||n[f]){if($(this).find('div.comment-controls div.related-replies, div.comment-controls div.related-comments').length&lt;1){if(n[f]&amp;&amp;!noReplies){var b=&quot;&quot;;(n[f].length&gt;1)?b=&quot;replies&quot;:b=&quot;reply&quot;;i.append('&lt;div class=&quot;related-replies&quot;&gt;&lt;h6&gt;'+(n[f].length)+' '+b+' to this comment&lt;/h6&gt;&lt;ol&gt;'+printReplies(n[f])+'&lt;/ol&gt;&lt;/div&gt;')}if(m[c.text].length&gt;1&amp;&amp;!noRelatives){var b=&quot;&quot;;(m[c.text].length-1&gt;1)?b=&quot;comments&quot;:b=&quot;comment&quot;;i.append('&lt;div class=&quot;related-comments&quot;&gt;&lt;h6&gt;'+(m[c.text].length-1)+' other '+b+' from '+c.text+'&lt;/h6&gt;&lt;ol&gt;'+printRelatives(m[c.text],g)+'&lt;/ol&gt;&lt;/div&gt;')}$(this).find('div.comment-controls ol li a').click(function(e){var a=getAnchor(this.href);setCurrentComment(a);$.scrollTo(a,{duration:1000});return false})}}if(!i.is(':visible')&amp;&amp;!h){h=setTimeout(function(){i.fadeIn(&quot;fast&quot;);h=false},300)}else{clearTimeout(h);h=false}},function(){if(!i.is(':visible')&amp;&amp;h){clearTimeout(h);h=false}else if(i.is(':visible')&amp;&amp;!h){h=setTimeout(function(){i.fadeOut(&quot;fast&quot;);h=false},500)}})});if(form){if(form.find('input[type=&quot;submit&quot;]').get(0)){$(form.find('input[type=&quot;submit&quot;]').get(0)).removeAttr(&quot;disabled&quot;)}$(form.find('input[type=&quot;submit&quot;]').get(0)).attr(&quot;disabled&quot;,false);if(!noPreview){form.append('&lt;div id=&quot;encouraged-preview&quot;&gt;&amp;nbsp;&lt;/div&gt;');preview=$($('#encouraged-preview').get(0));var p=$($('#comment').get(0));p.keyup(function(){preview.html(quote+fixWhiteSpace(p.val()));if(p.val().length&gt;400&amp;&amp;!p.hasClass('extended')){p.addClass('extended')}else if(p.val().length&lt;400&amp;&amp;p.hasClass('extended')){p.removeClass('extended')}})}}if(!noLightbox){$(&quot;body&quot;).append('&lt;div id=&quot;comment-lightbox&quot;&gt;&lt;/div&gt;&lt;div id=&quot;comment-lightbox-background&quot;&gt;&lt;/div&gt;');lightbox=$('#comment-lightbox').hide();lightboxBackground=$('#comment-lightbox-background').hide();lightboxBackground.click(hideLightbox)}if(form){form.submit(function(){$($('#comment').get(0)).val(preview.html());if(form.find('input[type=&quot;submit&quot;]').get(0)){$(form.find('input[type=&quot;submit&quot;]').get(0)).attr(&quot;disabled&quot;,true)};return true})}});function findCommentFor(a){a=$(a);while(!a.hasClass('comment')){if(a.hasClass('quotable')){return false}a=$(a.parent())}return a};function findPermalinkFor(a){return $(a).find('.comment-permalink').get(0)};function findAuthorFor(a){return $(a).find('.comment-author-name').get(0)};function printRelatives(a,b){var c=&quot;&quot;;var d=&quot;&quot;;for(var i=0;i&lt;=a.length-1;i++){(a[i]==b)?d=&quot;current&quot;:d=&quot;&quot;;c+='&lt;li class=&quot;'+d+'&quot;&gt;'+a[i]+'&lt;/li&gt;'};return c};function printReplies(a){var b=&quot;&quot;;for(var i=0;i&lt;=a.length-1;i++){b+='&lt;li&gt;'+a[i]+'&lt;/li&gt;'};return b};function setCurrentComment(a){$('.commentlist .current-comment').removeClass('current-comment');$($('.commentlist '+a).get(0)).addClass('current-comment')};function getAnchor(a){return'#'+a.split(&quot;#&quot;)[1]};function setupLightbox(){if(form){if(!$('#encouraged-comment-form-anchor').get(0)){lightbox.after('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-form-anchor&quot;&gt;&lt;/a&gt;')}lightbox.html(form);lightbox.append('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-lightbox-toggle&quot;&gt;Close&lt;/a&gt;');$('#encouraged-comment-lightbox-toggle').click(hideLightbox);lightbox.fadeIn(&quot;normal&quot;);lightboxBackground.show().fadeTo(&quot;slow&quot;,0.3)}};function hideLightbox(){lightbox.hide();$($('#encouraged-comment-form-anchor').get(0)).after(form);lightboxBackground.fadeOut(&quot;slow&quot;);return false};function setupComment(b,c){var d=findCommentFor(b);var e='&lt;p&gt;&lt;a href=&quot;'+findPermalinkFor(d).href+'&quot;&gt;@'+findAuthorFor(d).text+'&lt;/a&gt;&lt;/p&gt;';if(c){quote=&quot;&lt;blockquote&gt;&quot;;if(d.find('.entry-content &gt; p').length&gt;0){d.find('.entry-content &gt; p').each(function(){var a=false;if($(this).find(&quot;a:first-child&quot;).length&gt;0){if($($(this).find(&quot;a:first-child&quot;).get(0)).text().substring(1,-1)==&quot;@&quot;){a=true}}if(!a){quote+=&quot;&lt;p&gt;&quot;+this.innerHTML+&quot;&lt;/p&gt;&quot;}})}else{quote=d.innerHTML}quote+=&quot;&lt;/blockquote&gt;&quot;;quote=quote.replace(&quot;\n&lt;!-- Start your comment below this line. --&gt;\n\n&quot;,&quot;&quot;);quote=quote.replace(&quot;\n&lt;!-- Start your comment below this line. --&gt;\n&quot;,&quot;&quot;);quote=quote.replace(&quot;&lt;!-- Start your comment below this line. --&gt;&quot;,&quot;&quot;)}else{quote=&quot;&quot;}quote=e+quote;if(noLightbox||!form){if(noPreview){$('#comment').val(quote+&quot;\n&lt;p&gt;\n&lt;!-- Start your comment below this line. --&gt;\n\n&lt;/p&gt;&quot;)}$.scrollTo('#comment',{duration:1000})}else{setupLightbox()}if(!noPreview){preview.html(quote)}};function addOrShowDeleteQuoteControl(a){var b=form.find('#encouraged-comment-delete').get(0);if(a==&quot;&quot;){a=&quot;Article&quot;}else{if($(a).find('a').get(0)){a=$($(a).find('a').get(0)).text().replace('@','')}}if(!b){form.append('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-delete&quot;&gt;Quoting: '+a+' (click to cancel)&lt;/a&gt;');b=$(form.find('#encouraged-comment-delete').get(0));b.click(function(){$(this).hide();quote=&quot;&quot;;if(!noPreview){preview.html(fixWhiteSpace($('#comment').val()))}return false})}else{$(b).show();$(b).html(&quot;Quoting: &quot;+a+&quot; (click to cancel)&quot;)}};function getSelText(){var a='';if(window.getSelection){a=window.getSelection()}else if(document.getSelection){a=document.getSelection()}else if(document.selection){a=document.selection.createRange().text}else return;if(String(a).length&gt;2){return fixWhiteSpace(a)}else{return false}};function fixWhiteSpace(a){a=String(a).replace(/\n\n/g,&quot;&lt;/p&gt;&lt;p&gt;&quot;).replace(/\n/g,&quot;&lt;br/&gt;&quot;);return&quot;&lt;p&gt;&quot;+a+&quot;&lt;/p&gt;&quot;};
\ No newline at end of file
+var form;var commentList;var lightbox;var lightboxBackground;var quote;var preview;var noLightbox;var noPreview;var sortedCommentary;var noRelatives;var noReplies;var noQuoteControl;var noReplyControl;$(document).ready(function(){form=$('.encouraged-form').get(0);if(form){form=$(form)}else{form=false}commentList=$($('.commentlist').get(0));sortedCommentary=commentList.hasClass('sorted-commentary');noRelatives=commentList.hasClass('no-relatives');noReplies=commentList.hasClass('no-replies');noPreview=commentList.hasClass('no-preview');noQuoteControl=commentList.hasClass('no-quote-control');noReplyControl=commentList.hasClass('no-reply-control');noLightbox=commentList.hasClass('no-lightbox');$(document.body).append(&quot;&lt;span id=\&quot;comment-respond\&quot;&gt;Respond&lt;/span&gt;&quot;);var j=$('#comment-respond');j.css('position','absolute');j.fadeTo(10,0);var k=&quot;&quot;;var l=&quot;&quot;;$('.commentlist &gt; .comment, .quotable').each(function(){$(this).mouseup(function(e){j.css('top',e.pageY+10);j.css('left',e.pageX+10);if(getSelText()){j.show();j.fadeTo(&quot;normal&quot;,0.3);var a=findCommentFor(e.target);if(a){k=findPermalinkFor(a).href;l=findAuthorFor(a).text}else{k=false;l=false}quote=getSelText()}})});j.hover(function(){$(this).fadeTo(&quot;fast&quot;,1)},function(){$(this).fadeTo(&quot;fast&quot;,0.3)});j.mousedown(function(e){var a=&quot;&quot;;if(k&amp;&amp;l){a=&quot;&lt;p&gt;&lt;a href=\&quot;&quot;+k+&quot;\&quot;&gt;@&quot;+l+&quot;&lt;/a&gt;:&lt;/p&gt;\n&quot;}quote=a+&quot;&lt;blockquote&gt;&quot;+quote+&quot;&lt;/blockquote&gt;\n&lt;p&gt;\n&quot;;if(noLightbox||!form){if(!form){$('#comment').val(quote+&quot;&lt;!-- Start your comment below this line. --&gt;\n\n&lt;/p&gt;&quot;)}$.scrollTo('#comment',{duration:1000})}else{setupLightbox()}if(!noPreview){preview.html(quote)}addOrShowDeleteQuoteControl(a);$(this).fadeTo(1,0);j.hide()});$(document.body).mousedown(function(){j.hide()});$('.commentlist .comment a').click(function(e){var a=getAnchor(this.href);if($('.commentlist '+a).length&gt;0){setCurrentComment(a);$.scrollTo(a,{duration:1000});return false}});var m=new Array();var n=new Array();$('.commentlist .comment p:first-child a:first-child').each(function(){if($(this).text().substring(1,-1)==&quot;@&quot;){var a=$(this).text().substring(1,$(this).text().length);var b=findCommentFor(this);var c=findAuthorFor(b);var d=findPermalinkFor(b);var e=getAnchor(this.href);var f='&lt;a href=&quot;'+d.href+'&quot;&gt;'+c.innerHTML+'&lt;/a&gt;';var g=$('.commentlist #'+e.substr(1,e.length));if(g.length&gt;0&amp;&amp;sortedCommentary){$(g.get(0)).after(b.addClass('response'))}if(!n[e]){n[e]=new Array(f)}else{n[e][n[e].length]=f}}});var o='';if(!noQuoteControl){o+='&lt;a href=&quot;#&quot; class=&quot;comment-quote&quot;&gt;Quote&lt;/a&gt;'}if(!noReplyControl){o+='&lt;a href=&quot;#&quot; class=&quot;comment-reply&quot;&gt;Reply&lt;/a&gt;'}$('.commentlist &gt; .comment').each(function(){var c=findAuthorFor(this);var d=findPermalinkFor(this);var f=getAnchor(d.href);var g='&lt;a href=&quot;'+d.href+'&quot;&gt;'+d.innerHTML+'&lt;/a&gt;';if(!m[c.text]){m[c.text]=new Array(g)}else{m[c.text][m[c.text].length]=g}$(this).append('&lt;div class=&quot;comment-controls&quot;&gt;'+o+'&lt;/div&gt;');$(this).find('.comment-reply, .comment-quote').each(function(){if($(this).hasClass('comment-reply')){$(this).click(function(e){setupComment(this,false);return false})}if($(this).hasClass('comment-quote')){$(this).click(function(e){setupComment(this,true);return false})}});var h=false;var i=$($(this).find('.comment-controls'));i.hide();$(this).hover(function(){if(m[c.text].length&gt;1||n[f]){if($(this).find('div.comment-controls div.related-replies, div.comment-controls div.related-comments').length&lt;1){if(n[f]&amp;&amp;!noReplies){var b=&quot;&quot;;(n[f].length&gt;1)?b=&quot;replies&quot;:b=&quot;reply&quot;;i.append('&lt;div class=&quot;related-replies&quot;&gt;&lt;h6&gt;'+(n[f].length)+' '+b+' to this comment&lt;/h6&gt;&lt;ol&gt;'+printReplies(n[f])+'&lt;/ol&gt;&lt;/div&gt;')}if(m[c.text].length&gt;1&amp;&amp;!noRelatives){var b=&quot;&quot;;(m[c.text].length-1&gt;1)?b=&quot;comments&quot;:b=&quot;comment&quot;;i.append('&lt;div class=&quot;related-comments&quot;&gt;&lt;h6&gt;'+(m[c.text].length-1)+' other '+b+' from '+c.text+'&lt;/h6&gt;&lt;ol&gt;'+printRelatives(m[c.text],g)+'&lt;/ol&gt;&lt;/div&gt;')}$(this).find('div.comment-controls ol li a').click(function(e){var a=getAnchor(this.href);setCurrentComment(a);$.scrollTo(a,{duration:1000});return false})}}if(!i.is(':visible')&amp;&amp;!h){h=setTimeout(function(){i.fadeIn(&quot;fast&quot;);h=false},300)}else{clearTimeout(h);h=false}},function(){if(!i.is(':visible')&amp;&amp;h){clearTimeout(h);h=false}else if(i.is(':visible')&amp;&amp;!h){h=setTimeout(function(){i.fadeOut(&quot;fast&quot;);h=false},500)}})});if(form){if(form.find('input[type=&quot;submit&quot;]').get(0)){$(form.find('input[type=&quot;submit&quot;]').get(0)).removeAttr(&quot;disabled&quot;)}$(form.find('input[type=&quot;submit&quot;]').get(0)).attr(&quot;disabled&quot;,false);if(!noPreview){form.append('&lt;div id=&quot;encouraged-preview&quot;&gt;&amp;nbsp;&lt;/div&gt;');preview=$($('#encouraged-preview').get(0));var p=$($('#comment').get(0));p.keyup(function(){preview.html(quote+fixWhiteSpace(p.val()));if(p.val().length&gt;400&amp;&amp;!p.hasClass('extended')){p.addClass('extended')}else if(p.val().length&lt;400&amp;&amp;p.hasClass('extended')){p.removeClass('extended')}})}}if(!noLightbox&amp;&amp;form){$(&quot;body&quot;).append('&lt;div id=&quot;comment-lightbox&quot;&gt;&lt;/div&gt;&lt;div id=&quot;comment-lightbox-background&quot;&gt;&lt;/div&gt;');lightbox=$('#comment-lightbox').hide();lightboxBackground=$('#comment-lightbox-background').hide();lightboxBackground.click(hideLightbox);form.after('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-form-anchor&quot;&gt;&lt;/a&gt;')}if(form){form.submit(function(){$($('#comment').get(0)).val(preview.html());if(form.find('input[type=&quot;submit&quot;]').get(0)){$(form.find('input[type=&quot;submit&quot;]').get(0)).attr(&quot;disabled&quot;,true)};return true})}});function findCommentFor(a){a=$(a);while(!a.hasClass('comment')){if(a.hasClass('quotable')){return false}a=$(a.parent())}return a};function findPermalinkFor(a){return $(a).find('.comment-permalink').get(0)};function findAuthorFor(a){return $(a).find('.comment-author-name').get(0)};function printRelatives(a,b){var c=&quot;&quot;;var d=&quot;&quot;;for(var i=0;i&lt;=a.length-1;i++){(a[i]==b)?d=&quot;current&quot;:d=&quot;&quot;;c+='&lt;li class=&quot;'+d+'&quot;&gt;'+a[i]+'&lt;/li&gt;'};return c};function printReplies(a){var b=&quot;&quot;;for(var i=0;i&lt;=a.length-1;i++){b+='&lt;li&gt;'+a[i]+'&lt;/li&gt;'};return b};function setCurrentComment(a){$('.commentlist .current-comment').removeClass('current-comment');$($('.commentlist '+a).get(0)).addClass('current-comment')};function getAnchor(a){return'#'+a.split(&quot;#&quot;)[1]};function setupLightbox(){if(form){lightbox.html(form);lightbox.append('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-lightbox-toggle&quot;&gt;Close&lt;/a&gt;');$('#encouraged-comment-lightbox-toggle').click(hideLightbox);lightbox.fadeIn(&quot;normal&quot;);lightboxBackground.show().fadeTo(&quot;slow&quot;,0.3)}};function hideLightbox(){lightbox.hide();$($('#encouraged-comment-form-anchor').get(0)).after(form);lightboxBackground.fadeOut(&quot;slow&quot;);return false};function setupComment(b,c){var d=findCommentFor(b);var e='&lt;p&gt;&lt;a href=&quot;'+findPermalinkFor(d).href+'&quot;&gt;@'+findAuthorFor(d).text+'&lt;/a&gt;&lt;/p&gt;';if(c){quote=&quot;&lt;blockquote&gt;&quot;;if(d.find('.entry-content &gt; p').length&gt;0){d.find('.entry-content &gt; p').each(function(){var a=false;if($(this).find(&quot;a:first-child&quot;).length&gt;0){if($($(this).find(&quot;a:first-child&quot;).get(0)).text().substring(1,-1)==&quot;@&quot;){a=true}}if(!a){quote+=&quot;&lt;p&gt;&quot;+this.innerHTML+&quot;&lt;/p&gt;&quot;}})}else{quote=d.innerHTML}quote+=&quot;&lt;/blockquote&gt;&quot;;quote=quote.replace(&quot;\n&lt;!-- Start your comment below this line. --&gt;\n\n&quot;,&quot;&quot;);quote=quote.replace(&quot;\n&lt;!-- Start your comment below this line. --&gt;\n&quot;,&quot;&quot;);quote=quote.replace(&quot;&lt;!-- Start your comment below this line. --&gt;&quot;,&quot;&quot;)}else{quote=&quot;&quot;}quote=e+quote;if(noLightbox||!form){if(noPreview){$('#comment').val(quote+&quot;\n&lt;p&gt;\n&lt;!-- Start your comment below this line. --&gt;\n\n&lt;/p&gt;&quot;)}$.scrollTo('#comment',{duration:1000})}else{setupLightbox()}if(!noPreview){preview.html(quote)}};function addOrShowDeleteQuoteControl(a){var b=form.find('#encouraged-comment-delete').get(0);if(a==&quot;&quot;){a=&quot;Article&quot;}else{if($(a).find('a').get(0)){a=$($(a).find('a').get(0)).text().replace('@','')}}if(!b){form.append('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-delete&quot;&gt;Quoting: '+a+' (click to cancel)&lt;/a&gt;');b=$(form.find('#encouraged-comment-delete').get(0));b.click(function(){$(this).hide();quote=&quot;&quot;;if(!noPreview){preview.html(fixWhiteSpace($('#comment').val()))}return false})}else{$(b).show();$(b).html(&quot;Quoting: &quot;+a+&quot; (click to cancel)&quot;)}};function getSelText(){var a='';if(window.getSelection){a=window.getSelection()}else if(document.getSelection){a=document.getSelection()}else if(document.selection){a=document.selection.createRange().text}else return;if(String(a).length&gt;2){return fixWhiteSpace(a)}else{return false}};function fixWhiteSpace(a){a=String(a).replace(/\n\n/g,&quot;&lt;/p&gt;&lt;p&gt;&quot;).replace(/\n/g,&quot;&lt;br/&gt;&quot;);return&quot;&lt;p&gt;&quot;+a+&quot;&lt;/p&gt;&quot;};
\ No newline at end of file</diff>
      <filename>javascript/jquery/encouraged-commentary-min.js</filename>
    </modified>
    <modified>
      <diff>@@ -254,11 +254,12 @@ $(document).ready( function() {
       }
    }
    
-   if(!noLightbox) {
+   if(!noLightbox &amp;&amp; form) {
       $(&quot;body&quot;).append('&lt;div id=&quot;comment-lightbox&quot;&gt;&lt;/div&gt;&lt;div id=&quot;comment-lightbox-background&quot;&gt;&lt;/div&gt;');
       lightbox = $('#comment-lightbox').hide();
       lightboxBackground = $('#comment-lightbox-background').hide();
       lightboxBackground.click(hideLightbox);
+      form.after('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-form-anchor&quot;&gt;&lt;/a&gt;');
    }
    
    //
@@ -364,9 +365,6 @@ function getAnchor(href){
 */
 function setupLightbox() {
    if(form){
-      if(!$('#encouraged-comment-form-anchor').get(0)) {
-         lightbox.after('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-form-anchor&quot;&gt;&lt;/a&gt;');
-      }
       lightbox.html(form);
       lightbox.append('&lt;a href=&quot;#&quot; id=&quot;encouraged-comment-lightbox-toggle&quot;&gt;Close&lt;/a&gt;');
       $('#encouraged-comment-lightbox-toggle').click(hideLightbox);</diff>
      <filename>javascript/jquery/encouraged-commentary.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>951e0a81a2aa2a8cb45b444bcd7f69a429da39f0</id>
    </parent>
  </parents>
  <author>
    <name>Jimmy Jeffers</name>
    <email>jim@sumocreations.com</email>
  </author>
  <url>http://github.com/jimjeffers/encouraged-commentary/commit/2a2b2149fa554a86c88799258a55446aa15b56fc</url>
  <id>2a2b2149fa554a86c88799258a55446aa15b56fc</id>
  <committed-date>2009-01-18T00:17:40-08:00</committed-date>
  <authored-date>2009-01-18T00:17:40-08:00</authored-date>
  <message>Resolved minor issue causing the form to be pushed to the bottom of the body if the user closed a lightbox.</message>
  <tree>099c00203c5c82505bdf4d17b3b8bff812dafc91</tree>
  <committer>
    <name>Jimmy Jeffers</name>
    <email>jim@sumocreations.com</email>
  </committer>
</commit>
