<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <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=&quot;&quot;;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&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));var q;p.keyup(function(){if(q){clearTimeout(q)}q=setTimeout(function(){if(!quote){preview.html(fixWhiteSpace(p.val()))}else{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')}},250)})}}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(){var a=$(form.find('#comment').get(0));var b=&quot;&quot;;if(!quote){b=fixWhiteSpace(a.val())}else{b=quote+fixWhiteSpace(a.val())}a.val(b);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 false})}});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(a,b){var c=findCommentFor(a);var d='&lt;p&gt;&lt;a href=&quot;'+findPermalinkFor(c).href+'&quot;&gt;@'+$(findAuthorFor(c)).text()+'&lt;/a&gt;&lt;/p&gt;';var e=false;if(b){quote=&quot;&lt;blockquote&gt;&quot;;if(c.find('.entry-content &gt; p').length&gt;0){c.find('.entry-content &gt; p').each(function(){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;){e=true}}if(!e){quote+=&quot;&lt;p&gt;&quot;+this.innerHTML+&quot;&lt;/p&gt;&quot;}})}else{quote=c.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;}if(e){quote=d+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=&quot;&quot;;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&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));var q;p.keyup(function(){if(q){clearTimeout(q)}q=setTimeout(function(){if(!quote){preview.html(fixWhiteSpace(p.val()))}else{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')}},250)})}}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(){var a=$(form.find('#comment').get(0));var b=&quot;&quot;;if(!quote){b=fixWhiteSpace(a.val())}else{b=quote+fixWhiteSpace(a.val())}a.val(b);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(a,b){var c=findCommentFor(a);var d='&lt;p&gt;&lt;a href=&quot;'+findPermalinkFor(c).href+'&quot;&gt;@'+$(findAuthorFor(c)).text()+'&lt;/a&gt;&lt;/p&gt;';var e=false;if(b){quote=&quot;&lt;blockquote&gt;&quot;;if(c.find('.entry-content &gt; p').length&gt;0){c.find('.entry-content &gt; p').each(function(){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;){e=true}}if(!e){quote+=&quot;&lt;p&gt;&quot;+this.innerHTML+&quot;&lt;/p&gt;&quot;}})}else{quote=c.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=d+quote;addOrShowDeleteQuoteControl(d);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>@@ -288,7 +288,7 @@ $(document).ready( function() {
          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 false;
+         return true;
       });
    }
 });
@@ -436,10 +436,9 @@ function setupComment(target,quoted) {
    } else {
       quote = &quot;&quot;;
    }
-   
-   if(directivePresent){
-      quote = directive + quote;
-   }
+
+   quote = directive + quote;
+   addOrShowDeleteQuoteControl(directive);
    
    if(noLightbox || !form) {
       if(noPreview) {</diff>
      <filename>javascript/jquery/encouraged-commentary.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>19838bd32896149c12ab153b43c76311541002c7</id>
    </parent>
  </parents>
  <author>
    <name>Jimmy Jeffers</name>
    <email>jim@sumocreations.com</email>
  </author>
  <url>http://github.com/jimjeffers/encouraged-commentary/commit/fc4501950cb3ed3550b9162cda3e317dd6abad00</url>
  <id>fc4501950cb3ed3550b9162cda3e317dd6abad00</id>
  <committed-date>2009-01-18T14:16:48-08:00</committed-date>
  <authored-date>2009-01-18T14:16:48-08:00</authored-date>
  <message>Resolved some minor bugs.</message>
  <tree>555058e4d910625ebea0a9cda201b2a862fe6e62</tree>
  <committer>
    <name>Jimmy Jeffers</name>
    <email>jim@sumocreations.com</email>
  </committer>
</commit>
