diff --git a/Plugins.md b/Plugins.md index 639eb19..ea0f67e 100644 --- a/Plugins.md +++ b/Plugins.md @@ -69,14 +69,9 @@ A plugin which lets you mark particular posts so you don't forget them in your t ``` js // mark posts with dbl-click $('ol').delegate('a', 'click dblclick', function(e) { - e.stopPropagation(); + e.stopPropagation(); }).delegate('li', 'dblclick', function(e) { - var li = $(this); - if(li.hasClass('selected')) { - li.removeClass('selected'); - } else { - li.addClass('selected'); - } + $(this).toggleClass('selected'); }); ``` @@ -85,7 +80,8 @@ And add this to your CSS plugin file: ``` css /* mark posts with dbl-click */ .selected { - border-left: 5px solid green; + border-left: 5px solid green; + padding-left: 3px; } ```