Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adjust javscripts: Use $ instead of deprecated jq.

  • Loading branch information...
commit c0fc86b2f21a030d1f65c3364af9c9798cb7ed09 1 parent 68ada85
@phgross phgross 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.