Skip to content

Commit

Permalink
Quick Fix: 1.1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
sixem committed Feb 27, 2021
1 parent 70aa016 commit 4239eb0
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 45 deletions.
4 changes: 2 additions & 2 deletions public/indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @license https://github.com/sixem/eyy-indexer/blob/master/LICENSE GPL-3.0
* @author emy <admin@eyy.co>
* @version 1.1.7
* @version 1.1.71
*/

/**
Expand All @@ -15,7 +15,7 @@
*/

/* Used to bust the cache and to display footer version number. */
$version = '1.1.7';
$version = '1.1.71';

$config = array(
/* Authentication options. */
Expand Down
2 changes: 1 addition & 1 deletion public/indexer/js/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @license https://github.com/sixem/eyy-indexer/blob/master/LICENSE GPL-3.0
* @author emy <admin@eyy.co>
* @version 1.1.7
* @version 1.1.71
*/

/**
Expand All @@ -15,7 +15,7 @@
*/

/* Used to bust the cache and to display footer version number. */
$version = '1.1.7';
$version = '1.1.71';

$config = array(
/* Authentication options. */
Expand Down
9 changes: 7 additions & 2 deletions src/indexer/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1465,11 +1465,16 @@

if(config.mobile === false && config.preview.enabled === true)
{
document.querySelectorAll('body > table tr.file > td > a.preview').forEach((preview, index) =>
{
preview.itemIndex = index;
});

let previews = {}, initial = $('body').find('> table tr.file > td > a.preview');

if(initial.length > 0)
{
window.hoverPreview(initial[0], {
previews[initial[0].itemIndex] = window.hoverPreview(initial[0], {
delay : config.preview.hover_delay,
cursor : config.preview.cursor_indicator,
encodeAll : true
Expand All @@ -1480,7 +1485,7 @@
{
if(e.target.tagName == 'A' && e.target.className == 'preview')
{
var index = $(e.target).closest('tr').index();
var index = (e.target.itemIndex);

if(!Object.prototype.hasOwnProperty.call(previews, index))
{
Expand Down
76 changes: 38 additions & 38 deletions standalone/indexer.php

Large diffs are not rendered by default.

0 comments on commit 4239eb0

Please sign in to comment.