Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from 4teamwork/jq_removal

Adjust javscripts: Use $ instead of deprecated jq.
  • Loading branch information...
commit 7a5a2995ca9cb5c74c8f9cea1488311c2ccafdc6 2 parents 68ada85 + c0fc86b
@jone jone authored
Showing with 9 additions and 6 deletions.
  1. +3 −0  docs/HISTORY.txt
  2. +6 −6 ftw/tooltip/browser/tooltip_template.js.pt
View
3  docs/HISTORY.txt
@@ -4,6 +4,9 @@ Changelog
1.0.6 (unreleased)
------------------
+- Adjust javscripts: Use $ instead of deprecated jq.
+ [phgross]
+
- Added functionality wich allows using html tags as tooltip data.
[phgross]
View
12 ftw/tooltip/browser/tooltip_template.js.pt
@@ -3,10 +3,10 @@
var ftwtooltips = <span tal:replace="ftwtooltips" />;
function ShowTooltip(item){
- jq(item.selector).live('mouseover', function(e){
+ $(item.selector).live('mouseover', function(e){
e.preventDefault();
- var $this = jq(this);
+ var $this = $(this);
if (item.text){
$this.attr('title', item.text);
@@ -22,7 +22,7 @@ function ShowTooltip(item){
}
var customconfig = <span tal:replace="structure view/get_custom_config" />;
- var settings = jq.extend({
+ var settings = $.extend({
tipClass:'',
delay:0,
cancelDefault: true,
@@ -41,9 +41,9 @@ function ShowTooltip(item){
});
}
-jq(function(){
- jq(ftwtooltips).each(function(i, o){
- if (jq(o.condition).length !== 0){
+$(function(){
+ $(ftwtooltips).each(function(i, o){
+ if ($(o.condition).length !== 0){
ShowTooltip(o);
}
Please sign in to comment.
Something went wrong with that request. Please try again.