Active
Project:
Get Locations
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2015 at 18:16 UTC
Updated:
9 Feb 2017 at 09:16 UTC
Jump to comment: Most recent
Comments
Comment #1
hutch commentedCopy php function theme_getlocations_adinfo() to your theme's template.php, renaming it in the usual way, then you can add what you like to the bubble content. Alternately, if in a Views view you can put your own content in by providing it as a field, type Global: PHP or Global: Custom text can be useful. Check box "Replace default content" and select the field you have set up.
Either way you will have to find a way to drive the event so that your code runs, jQuery can come in handy.
Comment #2
proweb.ua commentedI'm probably not correctly formulated question.
in InfoBubble I display teaser (Popup Data -> rendered_entity ), and I use Ajax in views
rendered teaser code
mytheme/js/script.js
I click on
<span id="hide-group-right">, but nothing happensComment #3
hutch commentedYou are right, I cannot get it to work either. The only explanation I can think of is that the popup does not exist at the time that the javascript is initiated so the event is not attached. I also tried onClick="clickbubble()" but it gets deleted by drupal ;-(
Comment #4
brolad commentedI found one solution, I think it not very well but it works!
I was need to make workable AJAX into a window. I used infoBubble because it more flexible. So, what to do?...
Basically ajax didn't work because we haven't included JS files when we have opened info window. If we check /js/infobubble_options.txt file we can find the next string: "copy infobubble_options.txt to infobubble_options.js to override infobubble settings". So, make it for to have possibility override settings (Don't forget to include the file on your page).
Then into the file just to add the next:
In this case we'll execute misc/drupal.js file when window will be opened. That's all :) If you need to run your script, you can include your custom js file using $.getScript();
So, I think later I'll make some patch for this...