? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
10 May 2017

Pull Request for Issue Closes #15896.

Summary of Changes

Allow JQTooltip in the same DOM as a BSTooltip without JS errors when destorying tooltips in mediafield javascript

Testing Instructions

To setup:
Add this jQueryUI code to your /administrator/templates/isis/index.php before

<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js" integrity="sha256eGE6blurk5sHj+rmkfsGYeKyZx3M4bG+ZlFyA7Kns7E=" crossorigin="anonymous"></script>

Replicate the error in the JS console

screen shot 2017-05-10 at 20 50 07

To Test:
Apply PR (leaving jQueryUI in isis/index.php)
See Error disappears
Check this works with debug OFF and debug ON in Joomla Config. (one uses minified JS and one doesnt)

Expected result

No console errors

Documentation Changes Required

None

avatar PhilETaylor PhilETaylor - open - 10 May 2017
avatar PhilETaylor PhilETaylor - change - 10 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2017
Category JavaScript
avatar brianteeman
brianteeman - comment - 22 May 2017

I have tested this item successfully on 8de0ff4

replicated the error and confirmed the fix


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15951.

avatar brianteeman brianteeman - test_item - 22 May 2017 - Tested successfully
avatar brianteeman
brianteeman - comment - 22 May 2017

I have tested this item ? unsuccessfully on 8de0ff4

correction - the fix does remove the js error in the console but it still leaves other broken behaviour


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15951.

avatar brianteeman brianteeman - test_item - 22 May 2017 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 22 May 2017

with the PR and jquery-ui loaded
phil

avatar PhilETaylor
PhilETaylor - comment - 23 May 2017

This PR was just to stop the javascript error and to stop the fact that all other javascript failed on the page because of that error.

If you want to fix your tooltip styles then you will need BOTH the JS and the CSS for jQuery UI loaded in your DOM. I never bothered giving the CSS before as it was not required to replicate and fix the reported issue. Nothing in this PR attempts to correctly integrate the jQueryUI, it merely seeks to prevent the conflict should a 3pd decide to add it.

Add these before the </head> in /administrator/templates/isis/index.php before you test again

<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js" integrity="sha256-eGE6blurk5sHj+rmkfsGYeKyZx3M4bG+ZlFyA7Kns7E=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" integrity="sha256-rByPlHULObEjJ6XQxW/flG2r+22R5dKiAoef+aXWfik=" crossorigin="anonymous" />

and then you will see the tooltips pretty for example:

screen shot 2017-05-23 at 10 39 16

avatar PhilETaylor
PhilETaylor - comment - 23 May 2017

Pinging @Yves-K to test this please

avatar Yves-K
Yves-K - comment - 25 May 2017

Hello Phil,
Successfully tested.
Thank you very much for making it done (i really did not know how to create a pull request...)

avatar Yves-K
Yves-K - comment - 25 May 2017

I have tested this item successfully on 8de0ff4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15951.

avatar Yves-K Yves-K - test_item - 25 May 2017 - Tested successfully
avatar Yves-K
Yves-K - comment - 25 May 2017

Hi @hikashop-nicolas, might solve #14259.
Can you test too ?

avatar hikashop-nicolas
hikashop-nicolas - comment - 25 May 2017

The issue is still there when you edit a HikaShop products listing menu item with HikaShop below the 3.0.1, even with that patch.
We modified the way we handle the jquery-ui on our end in the 3.0.1 version of HikaShop to circumvent the problem altogether.

avatar rdeutz rdeutz - change - 27 May 2017
Labels Added: ?
avatar jaimestuardo
jaimestuardo - comment - 5 Oct 2017

This worked correctly in my Joomla 3.8.1. I am wondering why this correction is not included in the official release.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Oct 2017

@jaimestuardo we need 2 successfully Tests before a Maintainer can decide if its gonna be merged, so please mark your Test as successfully:

  • Please open Issue Tracker
  • Login with your github-Account
  • Click on blue "Test this"-Button above Authors-Picture
  • mark your Test as successfully
  • hit "submit test result"
avatar jaimestuardo jaimestuardo - test_item - 5 Oct 2017 - Tested successfully
avatar jaimestuardo
jaimestuardo - comment - 5 Oct 2017

I have tested this item successfully on 5744988


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15951.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Oct 2017

@Yves-K can you please retest?

avatar Quy
Quy - comment - 5 Oct 2017

Fix whitespace. Use tabs.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Oct 2017

@brianteeman can you please retest?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15951.

avatar FPerisa FPerisa - test_item - 21 Dec 2017 - Tested successfully
avatar FPerisa
FPerisa - comment - 21 Dec 2017

I have tested this item successfully on 5744988

It works and avoids the error message with and without debug mode.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15951.

avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Dec 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Dec 2017

Ready to Commit after two successful tests.

Thanks for Tests.

avatar mbabker mbabker - change - 23 Dec 2017
Labels Added: ?
avatar mbabker mbabker - change - 23 Dec 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-12-23 16:07:38
Closed_By mbabker
avatar mbabker mbabker - close - 23 Dec 2017
avatar mbabker mbabker - merge - 23 Dec 2017

Add a Comment

Login with GitHub to post a comment