-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item12601: sync latest JQueryPlugin changes to release branch
* Item12567: fix checking of version number in configure * Item12577: deprecate jquery-tooltip in favour of jquery-ui-tooltip * Item12596: improve documentation of jquery-ui * Item12583: revert to simple floats not to break installation on RHEL and SLES * Item12599: use jQuery-1.9x (not 2.0.x) for IE9 * Item12600: minor changes to jquery components git-svn-id: http://svn.foswiki.org/branches/Release01x01@16911 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
MichaelDaum
authored and
MichaelDaum
committed
Oct 12, 2013
1 parent
2d73ab3
commit e1b0ed6
Showing
36 changed files
with
658 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1380268113" format="1.1" reprev="6" version="1"}% | ||
%META:TOPICPARENT{name="JQueryPlugin"}% | ||
---+!! %TOPIC% | ||
|
||
%TOC% | ||
|
||
---++ Summary | ||
%JQPLUGINS{"ui::tooltip" | ||
format=" | ||
Homepage: $homepage <br /> | ||
Author(s): $author <br /> | ||
Version: $version | ||
" | ||
}% | ||
|
||
%STARTSECTION{"summary"}% | ||
%ENDSECTION{"summary"}% | ||
|
||
---++ Usage | ||
|
||
To load the library into the current wiki page, add this somewhere on the page: | ||
|
||
<verbatim class="tml"> | ||
%JQREQUIRE{"ui::tooltip"}% | ||
</verbatim> | ||
%JQREQUIRE{"ui::tooltip"}% | ||
|
||
This will initialize all DOM elements with a =jqUITooltip= css class and add a jQuery-ui tooltip to it. | ||
|
||
<verbatim class="tml"> | ||
<a href="#" class="jqUITooltip" title="This is the tooltip content">hover me</a> | ||
</verbatim> | ||
|
||
<a href="#" class="jqUITooltip" title="This is the tooltip content">hover me</a> | ||
|
||
The plugin will also delegate the feature to all elements in a =jqUITooltip= container by means of delegation. | ||
This means that all elements contained in a =jqUITooltip= container will be tooltip-enabled. | ||
By default any content of a =title= attribute will serve as the content for the tooltip displayed | ||
when hovering over this element. | ||
|
||
<verbatim class="tml"> | ||
<div class="jqUITooltip"> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
</div> | ||
</verbatim> | ||
|
||
<div class="jqUITooltip"> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
* <a href="#" title="This is the tooltip content">hover me</a> | ||
</div> | ||
|
||
---++ Parameters | ||
|
||
The plugin comes with a set of convenient parameters that can be specified using HTML5 data attributes. See the examples below. | ||
|
||
| *Name* | *Description* | *Default* | | ||
| arrow | boolean flag to display a small arrow next to the tooltip pointing to its root element | | ||
| delay | milliseconds delay before the tooltip appears | 500 | | ||
| duration | duration of the animation to show/hide the tooltip | 200 | | ||
| position | specifies the position of the tooltip relative to the element it appears at; this can either be one of the standard position specifiers known to jQuery or one of the short-cuts =bottom=, =top=, =left=, =right= | default | | ||
| theme | specifies one of the predefined look&feel settings; possible values: =default=, =transparent=, =info=, =error=, =help=, =frame= | default | | ||
| track | boolean flag to switch on/off the tooltip to follow the mouse pointer | true | | ||
|
||
---++ Examples | ||
|
||
---+++!! Use of HTML data attributes | ||
<verbatim class="tml"> | ||
<table class="foswikiLayoutTable jqUITooltip" data-theme="info" data-position="bottom" data-arrow="true" data-delay="0"> | ||
<tr> | ||
<th>First Name:</th> | ||
<th>Last Name:</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
<input type="text" class="foswikiInputField" title="Please insert your first name" size="30" /> | ||
</td> | ||
<td> | ||
<input type="text" class="foswikiInputField" title="Please insert your last name" size="30" /> | ||
</td> | ||
</tr> | ||
</table> | ||
</verbatim> | ||
|
||
<table class="foswikiLayoutTable jqUITooltip" data-theme="info" data-position="bottom" data-arrow="true" data-delay="0"> | ||
<tr> | ||
<th>First Name:</th> | ||
<th>Last Name:</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
<input type="text" class="foswikiInputField" title="Please insert your first name" size="30" /> | ||
</td> | ||
<td> | ||
<input type="text" class="foswikiInputField" title="Please insert your last name" size="30" /> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
---+++!! Themes | ||
<table class="foswikiLayoutTable"> | ||
<tr> | ||
<th>Default:</th> | ||
<td><input id="age" title="We ask for your age only for statistical purposes." class="foswikiInputField jqUITooltip" data-theme="default" data-position="right" data-arrow="true" data-delay="0" /></td> | ||
</tr> | ||
<tr> | ||
<th>Transparent:</th> | ||
<td><input id="age" title="We ask for your age only for statistical purposes." class="foswikiInputField jqUITooltip" data-theme="transparent" data-position="right" data-arrow="true" data-delay="0" /></td> | ||
</tr> | ||
<tr> | ||
<th>Info:</th> | ||
<td><input id="age" title="We ask for your age only for statistical purposes." class="foswikiInputField jqUITooltip" data-theme="info" data-position="right" data-arrow="true" data-delay="0" /></td> | ||
</tr> | ||
<tr> | ||
<th>Error:</th> | ||
<td><input id="age" title="We ask for your age only for statistical purposes." class="foswikiInputField jqUITooltip" data-theme="error" data-position="right" data-arrow="true" data-delay="0" /></td> | ||
</tr> | ||
<tr> | ||
<th>Help:</th> | ||
<td><input id="age" title="We ask for your age only for statistical purposes." class="foswikiInputField jqUITooltip" data-theme="help" data-position="right" data-arrow="true" data-delay="0" /></td> | ||
</tr> | ||
<tr> | ||
<th>Frame:</th> | ||
<td><input id="age" title="We ask for your age only for statistical purposes." class="foswikiInputField jqUITooltip" data-theme="frame" data-position="right" data-arrow="true" data-delay="0" /></td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
JQueryPlugin/lib/Foswiki/Configure/Checkers/JQueryPlugin/Plugins/Tooltip/Enabled.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# See bottom of file for license and copyright information | ||
package Foswiki::Configure::Checkers::JQueryPlugin::Plugins::Tooltip::Enabled; | ||
|
||
use warnings; | ||
use strict; | ||
|
||
use Foswiki::Configure::Checker (); | ||
our @ISA = qw( Foswiki::Configure::Checker ); | ||
|
||
sub check { | ||
my $this = shift; | ||
my $warnings; | ||
|
||
if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Tooltip}{Enabled} ) { | ||
$warnings .= $this->WARN(<<'HERE'); | ||
Tooltip has been deprecated. Please use the tooltip plugin part of the jQuery-ui package. | ||
The new plugin is not backwards compatible. See the JQueryPlugin documentation for further details. | ||
HERE | ||
} | ||
|
||
return $warnings; | ||
} | ||
|
||
1; | ||
__END__ | ||
Foswiki - The Free and Open Source Wiki, http://foswiki.org/ | ||
Copyright (C) 2008-2013 Foswiki Contributors. Foswiki Contributors | ||
are listed in the AUTHORS file in the root of this distribution. | ||
NOTE: Please extend that file, not this notice. | ||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation; either version 2 | ||
of the License, or (at your option) any later version. For | ||
more details read LICENSE in the root of this distribution. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
As per the GPL, removal of this notice is prohibited. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.