$85 GRAYBYTE WORDPRESS FILE MANAGER $32

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/cepurhuye.rw/wp-includes/js/jquery/

HOME
Current File : /home/bravrvjk/cepurhuye.rw/wp-includes/js/jquery//jquery.table-hotkeys.js
(function($){
	$.fn.filter_visible = function(depth) {
		depth = depth || 3;
		var is_visible = function() {
			var p = $(this), i;
			for(i=0; i<depth-1; ++i) {
				if (!p.is(':visible')) return false;
				p = p.parent();
			}
			return true;
		};
		return this.filter(is_visible);
	};
	$.table_hotkeys = function(table, keys, opts) {
		opts = $.extend($.table_hotkeys.defaults, opts);
		var selected_class, destructive_class, set_current_row, adjacent_row_callback, get_adjacent_row, adjacent_row, prev_row, next_row, check, get_first_row, get_last_row, make_key_callback, first_row;

		selected_class = opts.class_prefix + opts.selected_suffix;
		destructive_class = opts.class_prefix + opts.destructive_suffix;
		set_current_row = function (tr) {
			if ($.table_hotkeys.current_row) $.table_hotkeys.current_row.removeClass(selected_class);
			tr.addClass(selected_class);
			tr[0].scrollIntoView(false);
			$.table_hotkeys.current_row = tr;
		};
		adjacent_row_callback = function(which) {
			if (!adjacent_row(which) && typeof opts[which+'_page_link_cb'] === 'function' ) {
				opts[which+'_page_link_cb']();
			}
		};
		get_adjacent_row = function(which) {
			var first_row, method;

			if (!$.table_hotkeys.current_row) {
				first_row = get_first_row();
				$.table_hotkeys.current_row = first_row;
				return first_row[0];
			}
			method = 'prev' == which? $.fn.prevAll : $.fn.nextAll;
			return method.call($.table_hotkeys.current_row, opts.cycle_expr).filter_visible()[0];
		};
		adjacent_row = function(which) {
			var adj = get_adjacent_row(which);
			if (!adj) return false;
			set_current_row($(adj));
			return true;
		};
		prev_row = function() { return adjacent_row('prev'); };
		next_row = function() { return adjacent_row('next'); };
		check = function() {
			$(opts.checkbox_expr, $.table_hotkeys.current_row).each(function() {
				this.checked = !this.checked;
			});
		};
		get_first_row = function() {
			return $(opts.cycle_expr, table).filter_visible().eq(opts.start_row_index);
		};
		get_last_row = function() {
			var rows = $(opts.cycle_expr, table).filter_visible();
			return rows.eq(rows.length-1);
		};
		make_key_callback = function(expr) {
			return function() {
				if ( null == $.table_hotkeys.current_row ) return false;
				var clickable = $(expr, $.table_hotkeys.current_row);
				if (!clickable.length) return false;
				if (clickable.is('.'+destructive_class)) next_row() || prev_row();
				clickable.trigger( 'click' );
			};
		};
		first_row = get_first_row();
		if (!first_row.length) return;
		if (opts.highlight_first)
			set_current_row(first_row);
		else if (opts.highlight_last)
			set_current_row(get_last_row());
		$.hotkeys.add(opts.prev_key, opts.hotkeys_opts, function() {return adjacent_row_callback('prev');});
		$.hotkeys.add(opts.next_key, opts.hotkeys_opts, function() {return adjacent_row_callback('next');});
		$.hotkeys.add(opts.mark_key, opts.hotkeys_opts, check);
		$.each(keys, function() {
			var callback, key;

			if ( typeof this[1] === 'function' ) {
				callback = this[1];
				key = this[0];
				$.hotkeys.add(key, opts.hotkeys_opts, function(event) { return callback(event, $.table_hotkeys.current_row); });
			} else {
				key = this;
				$.hotkeys.add(key, opts.hotkeys_opts, make_key_callback('.'+opts.class_prefix+key));
			}
		});

	};
	$.table_hotkeys.current_row = null;
	$.table_hotkeys.defaults = {cycle_expr: 'tr', class_prefix: 'vim-', selected_suffix: 'current',
		destructive_suffix: 'destructive', hotkeys_opts: {disableInInput: true, type: 'keypress'},
		checkbox_expr: ':checkbox', next_key: 'j', prev_key: 'k', mark_key: 'x',
		start_row_index: 2, highlight_first: false, highlight_last: false, next_page_link_cb: false, prev_page_link_cb: false};
})(jQuery);


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
30 Mar 2026 6.47 AM
bravrvjk / bravrvjk
0755
ui
--
18 Nov 2025 10.47 AM
bravrvjk / bravrvjk
0755
jquery-migrate.js
31.229 KB
9 Jun 2023 9.49 AM
bravrvjk / bravrvjk
0644
jquery-migrate.min.js
13.259 KB
9 Jun 2023 9.49 AM
bravrvjk / bravrvjk
0644
jquery.color.min.js
6.489 KB
30 Aug 2024 9.40 PM
bravrvjk / bravrvjk
0644
jquery.form.js
40.929 KB
18 Mar 2021 9.53 PM
bravrvjk / bravrvjk
0644
jquery.form.min.js
15.603 KB
6 Feb 2025 10.27 PM
bravrvjk / bravrvjk
0644
jquery.hotkeys.js
5.485 KB
24 Feb 2021 12.45 AM
bravrvjk / bravrvjk
0644
jquery.hotkeys.min.js
1.751 KB
23 Aug 2012 4.04 AM
bravrvjk / bravrvjk
0644
jquery.js
278.646 KB
28 Aug 2023 9.14 PM
bravrvjk / bravrvjk
0644
jquery.masonry.min.js
1.776 KB
18 Aug 2016 10.55 PM
bravrvjk / bravrvjk
0644
jquery.min.js
85.501 KB
28 Aug 2023 9.14 PM
bravrvjk / bravrvjk
0644
jquery.query.js
3.607 KB
10 Mar 2022 11.54 PM
bravrvjk / bravrvjk
0644
jquery.schedule.js
3.376 KB
10 Jan 2008 10.35 PM
bravrvjk / bravrvjk
0644
jquery.serialize-object.js
0.751 KB
24 Feb 2021 12.45 AM
bravrvjk / bravrvjk
0644
jquery.table-hotkeys.js
3.664 KB
24 Feb 2021 12.45 AM
bravrvjk / bravrvjk
0644
jquery.table-hotkeys.min.js
2.241 KB
23 Aug 2012 4.04 AM
bravrvjk / bravrvjk
0644
jquery.ui.touch-punch.js
1.151 KB
11 Apr 2012 6.58 AM
bravrvjk / bravrvjk
0644
suggest.js
6.827 KB
13 Jan 2016 10.22 PM
bravrvjk / bravrvjk
0644
suggest.min.js
2.923 KB
13 Jan 2016 10.22 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF