Pastoid

The page you are looking at now is at this URL: http://pastoid.com/ann

This paste was last updated on February 12, 2009 at 9:22 pm.

Pasted Coderaw

 $.fn.rangeSelect = function() {
    var lastCheckbox = null;
    var $spec = this;
 
    $spec.bind("click", function(e) {
        if (lastCheckbox != null && e.shiftKey) {
            $spec.slice(
                Math.min($spec.index(lastCheckbox), $spec.index(e.target)),
                Math.max($spec.index(lastCheckbox), $spec.index(e.target)) + 1
            ).attr({checked: e.target.checked ? "checked" : ""});
        }
        lastCheckbox = e.target;
    });
    return $spec;
 };
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 10
search.live.com 1
mibbit.com 1
Is this paste spam?
<Hide