From 6415b9d50d37d4217fbd8c01efca4355ce33c073 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 6 Feb 2021 17:02:46 +1100 Subject: [PATCH] remove unneeded and complex jquery function --- templates/files.html | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/templates/files.html b/templates/files.html index ae0cd42..7a11286 100644 --- a/templates/files.html +++ b/templates/files.html @@ -130,22 +130,6 @@ function ChangeSize(clicked_button,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 // el == element the click is on // this allows single-click to select, ctrl-click to (de)select 1 item, and