remove unneeded and complex jquery function
This commit is contained in:
@@ -130,22 +130,6 @@ function ChangeSize(clicked_button,sz)
|
|||||||
$('#size').val(sz)
|
$('#size').val(sz)
|
||||||
}
|
}
|
||||||
|
|
||||||
// function that finds all next elements of the selector we use - works better
|
|
||||||
// than jauery nextAll as it stops when I use any grouping div to break up the
|
|
||||||
// .figures
|
|
||||||
$.fn.findNextAll = function( selector ){
|
|
||||||
var that = this[ 0 ],
|
|
||||||
selection = $( selector ).get();
|
|
||||||
return this.pushStack(
|
|
||||||
// if there are no elements in the original selection return everything
|
|
||||||
!that && selection ||
|
|
||||||
$.grep( selection, function( n ){
|
|
||||||
return [4,12,20].indexOf( that.compareDocumentPosition( n ) ) > -1
|
|
||||||
// if you are looking for previous elements it should be [2,10,18]
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// e == event (can see if shift/ctrl held down while left-clicking
|
// e == event (can see if shift/ctrl held down while left-clicking
|
||||||
// el == element the click is on
|
// el == element the click is on
|
||||||
// this allows single-click to select, ctrl-click to (de)select 1 item, and
|
// this allows single-click to select, ctrl-click to (de)select 1 item, and
|
||||||
|
|||||||
Reference in New Issue
Block a user