Skip to content

Commit

Permalink
Fix to work with RS 8.6, Update client lib
Browse files Browse the repository at this point in the history
  • Loading branch information
System Administrator committed Nov 7, 2018
1 parent c9991b3 commit 6e001b6
Show file tree
Hide file tree
Showing 13 changed files with 120 additions and 90 deletions.
4 changes: 2 additions & 2 deletions hooks/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function HookRs_tooltipSearchEndofsearchpage()
<script>
jQuery(document).ready(function()
{
jQuery(".ResourcePanelShell, .ResourcePanelShellLarge, .ResourcePanelShellSmall").find('img').tooltipster(
jQuery(".ResourcePanel, .ImageStripLink").find('img').tooltipster(
{
animation: 'fade',
updateAnimation: null,
Expand All @@ -20,7 +20,7 @@ functionBefore: function(instance, helper)
var $origin = jQuery(helper.origin);
if ($origin.data('loaded') !== true)
{
var ref = $origin.closest(".ResourcePanelShell, .ResourcePanelShellLarge, .ResourcePanelShellSmall").attr("id").replace("ResourceShell", "");
var ref = $origin.closest(".ResourcePanel, .ImageStripLink").attr("id").replace("ResourceShell", "").replace("ResourceStrip", "");
jQuery.get('<?php echo $baseurl;?>/plugins/rs_tooltip/include/generate.php', {ref: ref}, function(data)
{
instance.content(data);
Expand Down
Empty file modified lib/tooltipster/LICENSE
100644 → 100755
Empty file.
197 changes: 114 additions & 83 deletions lib/tooltipster/README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,83 +1,114 @@
Tooltipster
===========

A flexible and extensible jQuery plugin for modern tooltips by Caleb Jacob and Louis Ameline under MIT license.
Compatible with Mozilla Firefox, Google Chrome, IE6+ and others.
Requires jQuery 1.10+ (or less, see the compatibility note in the doc).
Default css + js files = 10Kb gzipped.

A reminder of options/methods lies below. For detailed documentation, visit http://iamceege.github.io/tooltipster/

Standard options
----------------

animation
animationDuration
content
contentAsHTML
contentCloning
debug
delay
delayTouch
functionInit
functionBefore
functionReady
functionAfter
functionFormat
IEmin
interactive
multiple
plugins
repositionOnScroll
restoration
selfDestruction
timer
theme
trackerInterval
trackOrigin
trackTooltip
trigger
triggerClose
triggerOpen
updateAnimation
zIndex

Other options
-------------

(these are available when you use sideTip, the default plugin)

arrow
distance
functionPosition
maxWidth
minIntersection
minWidth
side
viewportAware

Instance methods
----------------

close([callback])
content([myNewContent])
destroy()
disable()
elementOrigin()
elementTooltip()
enable()
instance()
on, one, off, triggerHandler
open([callback])
option(optionName [, optionValue])
reposition()
status()

Core methods
------------

instances([selector || element])
instancesLatest()
on, one, off, triggerHandler
origins()
setDefaults({})
Tooltipster
===========

A flexible and extensible jQuery plugin for modern tooltips by Caleb Jacob and Louis Ameline under MIT license.
Compatible with Mozilla Firefox, Google Chrome, IE6+ and others.
Requires jQuery 1.10+ (or less, see the compatibility note in the doc).
Default css + js files = 10Kb gzipped.

A reminder of options/methods lies below. For detailed documentation, visit http://iamceege.github.io/tooltipster/

Standard options
----------------

animation
animationDuration
content
contentAsHTML
contentCloning
debug
delay
delayTouch
functionInit
functionBefore
functionReady
functionAfter
functionFormat
IEmin
interactive
multiple
plugins
repositionOnScroll
restoration
selfDestruction
timer
theme
trackerInterval
trackOrigin
trackTooltip
trigger
triggerClose
triggerOpen
updateAnimation
zIndex

Other options
-------------

(these are available when you use sideTip, the default plugin)

arrow
distance
functionPosition
maxWidth
minIntersection
minWidth
side
viewportAware

Instance methods
----------------

close([callback])
content([myNewContent])
destroy()
disable()
elementOrigin()
elementTooltip()
enable()
instance()
on, one, off, triggerHandler
open([callback])
option(optionName [, optionValue])
reposition()
status()

Core methods
------------

instances([selector || element])
instancesLatest()
on, one, off, triggerHandler
origins()
setDefaults({})

Events
------

after
before
close
closing
created
destroy
destroyed
dismissable
format
geometry
init
state
ready
reposition
repositioned
scroll
start
startcancel
startend
updated

sideTip events
--------------

position
positionTest
positionTested
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified lib/tooltipster/css/tooltipster.bundle.min.css
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions lib/tooltipster/js/tooltipster.bundle.min.js
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Robert Damrau
Copyright (c) 2016-2018 Robert Damrau

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion pages/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
if (!checkperm('a')) {
exit($lang['error-permissiondenied']);
}
include '../../../include/general.php';

# Specify the name of this plugin, the heading to display for the page and the
# optional introductory text. Set $page_intro to "" for no intro text
Expand Down
2 changes: 1 addition & 1 deletion rs_tooltip.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rs_tooltip
author: Robert Damrau
version: 0.2
version: 0.3
desc: Display resource metadata in a tooltip when hovering thumbs.
config_url: /plugins/rs_tooltip/pages/setup.php
info_url: https://github.com/winkelement/rs_tooltip
Expand Down

0 comments on commit 6e001b6

Please sign in to comment.