Forum


Random banner - Quick Info

More
3 years 10 months ago #34422 by Jordi
If you click on the random property quick info & then you close the quick info the banner clicked will appear wrong. If you do a mouseover the text will disappear. Look the picture.


Attachment ErrorJomres_2014-12-16.jpg not found





Attachment ErrorJomres2_2014-12-16.jpg not found

Attachments:
The topic has been locked.
More
3 years 10 months ago #34464 by Jordi
Replied by Jordi on topic Random banner - Quick Info
Nobody knows how to fix this?
The topic has been locked.
More
3 years 10 months ago - 3 years 10 months ago #34478 by Alex
Replied by Alex on topic Random banner - Quick Info
Not yet, I'm looking into it.

It seems that the problem happens right after you click on the "X" button in "Quick Info" pop-up modal. This is related to jQuery and bootstrap javascript.
I also see that they used "translateY" css attributes.
Something happens after you press that "X" button that breaks the "translateY" attributes...

Also, when the quick-info modal is active (screen dark, only modal window is shown) and I close it with Chrome's Dev tools (just erase the modal div and the dark div layer), then everything is ok. The problem really seems to be that "X" button.

I'll look at it again next week.
Last edit: 3 years 10 months ago by Alex.
The topic has been locked.
More
3 years 10 months ago #34486 by Jordi
Replied by Jordi on topic Random banner - Quick Info
Ok! Thanks!
The topic has been locked.
More
3 years 10 months ago #34497 by Alex
Replied by Alex on topic Random banner - Quick Info
After 3 days of debugging, I have NO clue why it doesn't work...

Steps to reproduce:
- Open the demo.jomres.net website
- Go to the "Popular Accomodations" section
- Hover your mouse over any property, so that the picture slides upwards and 2 links appear
- Click on Quick Info link
- Close the pop-up frame
- Now there is no picture in the accommodation that you clicked and the two links fly upwards, beyond the screen

This is very annoying. I'll disable this feature for now. When I have more time, I'll look at it again.
So far, I think that something somewhere sets the coordinates of the "mask div" (the one that slides out), but I couldn't find what and where...
The topic has been locked.
More
3 years 10 months ago - 3 years 10 months ago #34498 by Alex
Replied by Alex on topic Random banner - Quick Info
UPDATED FIX!
OK, here's a fix (after 3 days of intensive debugging)

In \plugins\system\t3\base-bs3\bootstrap\js\bootstrap.js
line 1094
($this.is(':visible') && $this.trigger('focus'))
Just comment-out the 'focus' part, so it becomes:
Line1094: $this.is(':visible') //&& $this.trigger('focus')

That's it!!!

CAUTION: that file is a "core file", meaning that it will be rewritten if you update the template, or the T3 framework. Keep that in mind. Also, it's usually not a good idea to "hack" into core files, but sometimes you have no choice.

Please test it and post back your results. I have NO clue if it will impact anything else. Basically, I noticed a while ago that when you click on the "Quick Info" link, then the popup opens up with quick accommodation details. When you close it, the script restores the last focused element, which in our case it the "Quick Info" button. This messes up all the coordinates and places it in the wrong place. By deactivating that line, the script won't restore the focus to the button that opens the Quick Info box.

Alex
Last edit: 3 years 10 months ago by Alex. Reason: Only 'focus' parts needs to be commented
The following user(s) said Thank You: Vince Wooll, José María, Kris
The topic has been locked.
More
3 years 10 months ago #34499 by Jordi
Replied by Jordi on topic Random banner - Quick Info
It's Ok! Thks Nice Joob!
The topic has been locked.

ABOUT US

Vince portrait smallaladar

Developed and maintained by Vince Wooll and Aladar Barthi, Jomres was initially conceived in early 2005 as a Mambo based solution to a client’s hotel management needs. While it wasn't originally expected to be an online booking system it quickly morphed into one as users requested more and more features.

As the number of feature requests grew Vince knew that he would need to dedicate more time to the project and in July 2005 Jomres was formally released as a commercial project. Since then, Jomres has become one of Mambo’s, and now Joomla’s, longest running projects. It has survived various versions of Mambo, then Joomla 1.0, 1.5, 1.6, 1.7, 2.5 and 3.

Aladar joined the project in 2010 after using Jomres for his own projects. He was active on the forum, helping other members of the community and eventually Vince invited him to join the team. He has since become an integral part of the project and has contributed significantly to it's development over the years.

Whilst not formally part of the Jomres project, Rodrigo Rocco and the team have become firm friends. Rod is a freelancer who specialises in doing custom work for Jomres users and developing custom plugins for the system that take advantage of it's modular design. He has built many useful extensions including his fabulous new Valentina Template Package.

 

Jomres and the Jomres Logo is trademarked and can't be used without written consent from the owner.

www.jomres.net is not affiliated with or endorsed by the Joomla! Project, Open Source Matters or the WordPress project. The Joomla! & WordPress names and logos are used under a limited license granted by Open Source Matters and the WordPress Projects.

© Copyright 2005 - 2018 Woollyinwales IT.