html - JavaScript with rails partial -


I am working on a website and I have a very weird bug that I can not seem to find. I have a table and each row is a column with a button when the button is clicked, the tooltip should pop up. This table which is partly given. The problem I am facing now is that the tool tip Not popping for marks in the table, unless there is no additional icon on the webpage that is not in the table. So here's the code where I present partial (this will not show the tooltip on the table):

   & Lt; / Section & gt; ... & lt; / Div & gt;   

The code for partial is:

  & lt; I class = "filter-icon os blue" data-filter-name = "gfilter" & gt; & Lt; Div class = "tooltip-container" & gt; & Lt; Div class = "tooltip tail top" & gt; & Lt; / Div & gt; & Lt; Div class = "tooltip top surfacing center" & gt; Any & lt; / Div & gt; & Lt; / Div & gt; & Lt; / I & gt;   

If I present my table like this:

   & Lt; / Section & gt; ... & lt; / Div & gt; & Lt; I class = "filter-icon os blue" data-filter-name = "gfilter" & gt;   

When you click the button in the table, show the tooltip.

I think I have solved the problem in JavaScript. When I get the tooltips working in the chart, I hit this line of code:

  Function filtertips () {"use strictly"; If ($ (". Filter-mark"). Length == 0) return; Var openFilter = false; Var $ lastFilterOpen = null; // The tool tip works when this function hits, // but the tool tip will not be there when I do not hit it / load. $ ('Body') Click (function (e) {// do stuff}]   

I think the issue is to do with $ ('body') and The fact is that tooltip shipments should be shown in the table provided partially. Any help would be greatly appreciated.

document / entity , that works with javascript - meaning it The how page can not be translated, only there are some elements in it. Apart from this, these elements need to be present at o load - if you do not have present elements at this time, then JS will not be able to force them

Hope It gives you some more overview - I'm sorry I can not help further!

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -