- Posts: 28
COMMUNITY FORUM
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Player & pop-up player
- Mahmoud
-
Topic Author
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
(function($){
$(document).ready(function(){
$('.popup').click(function(){
$('.jp-pause').trigger('click');
});
});
})(jQuery);
This code which should be pasted in your custom,js file emulates a click on the pause when the popup is being pressed.
Let me know if it did the trick.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mahmoud
-
Topic Author
- Offline
- Junior Member
- Posts: 28
I did past the code into the custom.js file but it did not do the magic (sorry)
any another suggestion ?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mahmoud
-
Topic Author
- Offline
- Junior Member
- Posts: 28
found it easier and suits my needs now.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mahmoud
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Remove the script I gave you and open the Player module.
In the popup class add a second class jp-pause.
It should look like class="popup jp-pause"
Let me know if that works.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mahmoud
-
Topic Author
- Offline
- Junior Member
- Posts: 28
so i went to the player model but could not find the class pop-up to add |class="popup jp-pause"|
any screenshot please?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Locate the following block:
<a class="popup" href="http://radio.radioarabia.co.uk" onclick="window.open(this.href,'targetWindow','width=377,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,');return false;"><i class="icon-popup"></i></a>
and simply add the extra class.
<a class="jp-pause popup" href="http://radio.radioarabia.co.uk" onclick="window.open(this.href,'targetWindow','width=377,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,');return false;"><i class="icon-popup"></i></a>
I would do it myself, but for some strange reason I cannot save a module.
If it still does not work, let me know so we can try a different solution.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mahmoud
-
Topic Author
- Offline
- Junior Member
- Posts: 28
So i thought to add the a line instead of replacing it.
anyway i did it and it worked :)
thanks again
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.