diff --git a/website/agenda/planung/calendar.cgi b/website/agenda/planung/calendar.cgi index c7b0044..132e043 100755 --- a/website/agenda/planung/calendar.cgi +++ b/website/agenda/planung/calendar.cgi @@ -110,7 +110,6 @@ if ( print q{ - }; } diff --git a/website/agenda/planung/js/jquery.tablesorter.scroller.js b/website/agenda/planung/js/jquery.tablesorter.scroller.js deleted file mode 100644 index 6cb97fe..0000000 --- a/website/agenda/planung/js/jquery.tablesorter.scroller.js +++ /dev/null @@ -1,221 +0,0 @@ -/*! - Copyright (C) 2011 T. Connell & Associates, Inc. - - Dual-licensed under the MIT and GPL licenses - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE - FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - Resizable scroller widget for the jQuery tablesorter plugin - - Version 2.0 - modified by Rob Garrison 4/12/2013; updated 10/26/2014 (v2.18.0) - Requires jQuery v1.7+ - Requires the tablesorter plugin, v2.8+, available at http://mottie.github.com/tablesorter/docs/ - - Usage: - - $(function() { - - $('table.tablesorter').tablesorter({ - widgets: ['zebra', 'scroller'], - widgetOptions : { - scroller_height : 300, // height of scroll window - scroller_barWidth : 18, // scroll bar width - scroller_jumpToHeader : true, // header snap to browser top when scrolling the tbody - } - }); - - }); - - Website: www.tconnell.com -*/ -/*jshint browser:true, jquery:true, unused:false */ -;(function($){ -"use strict"; - -$.fn.hasScrollBar = function(){ - return this.get(0).scrollHeight > this.height(); -}; -var ts = $.tablesorter; - -ts.window_resize = function(){ - if (this.resize_timer) { - clearTimeout(this.resize_timer); - } - this.resize_timer = setTimeout(function(){ - $(this).trigger('resizeEnd'); - }, 250); -}; - -// Add extra scroller css -$(function(){ - var s = ''; - $(s).appendTo('body'); -}); - -ts.addWidget({ - id: 'scroller', - priority: 60, // run after the filter widget - options: { - scroller_height : 300, - scroller_barWidth : 18, - scroller_jumpToHeader: true, - scroller_upAfterSort: true - }, - init: function(table, thisWidget, c, wo){ - var $win = $(window), - namespace = c.namespace + 'tsscroller'; - // Setup window.resizeEnd event - $win - .bind('resize' + namespace, ts.window_resize) - .bind('resizeEnd' + namespace, function() { - // init is run before format, so scroller_resizeWidth - // won't be defined within the "c" or "wo" parameters - if (typeof table.config.widgetOptions.scroller_resizeWidth === 'function') { - // IE calls resize when you modify content, so we have to unbind the resize event - // so we don't end up with an infinite loop. we can rebind after we're done. - $win.unbind('resize' + namespace, ts.window_resize); - table.config.widgetOptions.scroller_resizeWidth(); - $win.bind('resize' + namespace, ts.window_resize); - } - }); - }, - format: function(table, c, wo) { - var h, $hdr, t, resize, $cells, - // c.namespace contains a unique tablesorter ID, per table - id = c.namespace.slice(1) + 'tsscroller', - $win = $(window), - $tbl = c.$table; - - if (!c.isScrolling) { - h = wo.scroller_height || 300; - t = $tbl.find('tbody').height(); - if (t !== 0 && h > t) { h = t + 10; } // Table is less than h px - - $hdr = $('
k.inArray(a,G)&&(x=b(q,m),null!==x))return B=x,!1}),null!==B?w=B:(m.exact=(m.iExact+m.childRowText).indexOf(c.filter.parseFilter(q,m.iFilter,p,m.parsed[p])),w=!u.filter_startsWith&&0<=m.exact||u.filter_startsWith&&0===m.exact)),v=w?v:!1);f.eq(h).toggle(v).toggleClass(u.filter_filteredRow,!v); s.length&&s.toggleClass(u.filter_filteredRow,!v)}}q.filteredRows+=f.not("."+u.filter_filteredRow).length;q.totalRows+=f.length;c.processTbody(d,n,!1)}q.lastCombinedFilter=b;q.lastSearch=a;q.$table.data("lastSearch",a);u.filter_saveFilters&&c.storage&&c.storage(d,"tablesorter-filters",a);q.debug&&c.benchmark("Completed filter widget search",A);u.filter_initialized&&q.$table.trigger("filterEnd",q);setTimeout(function(){q.$table.trigger("applyWidgets")},0)}},getOptionSource:function(d,a,b){var e,f=d.config, h=[],g=!1,n=f.widgetOptions.filter_selectSource,l=f.$table.data("lastSearch")||[],r=k.isFunction(n)?!0:c.getColumnData(d,n,a);b&&""!==l[a]&&(b=!1);if(!0===r)g=n(d,a,b);else{if(r instanceof k||"string"===k.type(r)&&0<=r.indexOf(""))return r;k.isArray(r)?g=r:"object"===k.type(n)&&r&&(g=r(d,a,b))}!1===g&&(g=c.filter.getOptions(d,a,b));g=k.grep(g,function(a,b){return k.inArray(a,g)===b});f.$headers.filter('[data-column="'+a+'"]:last').hasClass("filter-select-nosort")||(k.each(g,function(b,c){h.push({t:c, p:f.parsers&&f.parsers[a].format(c,d,[],a)})}),e=f.textSorter||"",h.sort(function(b,f){var g=b.p.toString(),h=f.p.toString();return k.isFunction(e)?e(g,h,!0,a,d):"object"===typeof e&&e.hasOwnProperty(a)?e[a](g,h,!0,a,d):c.sortNatural?c.sortNatural(g,h):!0}),g=[],k.each(h,function(a,b){g.push(b.t)}));return g},getOptions:function(c,a,b){var e,f,h,g,n=c.config,l=n.widgetOptions,r=n.$table.children("tbody"),p=[];for(e=0;e