Notifications pop up _blank links

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Mon Jun 25, 2012 11:34 am
Hi,

How can I set those links to _self?

In Jomsocial forum says editing notification.item.php (I tried without success). We don't have that file in our template folder, maybe that's the reason?

I had also tried in the Jomsocial back-end configuration: Site - activity - open link in a new window - NO

Thank you
User avatar
Junior Boarder

GK User
Mon Jun 25, 2012 1:33 pm
Could you tell me where you have modified this file ? The file should be in JomSocial directory, root/com_community is the JS installation place.
User avatar
Platinum Boarder

GK User
Mon Jun 25, 2012 1:46 pm
ROOT/components/com_community/templates/default/notification.item.php
User avatar
Junior Boarder

GK User
Tue Jun 26, 2012 7:47 am
This is internal JomSocial issue which as a 3rd party extension is beyond our support, please contact with JomSocial support - they should fix this. To make sure that it is not related with any Gavick product please switch template to default Joomla! one - then you will get 100% certainty.
User avatar
Platinum Boarder

GK User
Fri Jun 29, 2012 4:25 pm
this issue can easily be solved changing the code of the file mentioned above:

Code: Select all
joms.jQuery(".notification-msg-item a").each(function(key,val){
   joms.jQuery(val).attr("target","_blank");
   joms.jQuery(val).click(function(e){
      if (!e) var e = window.event;
      e.cancelBubble = true;
      if (e.stopPropagation) e.stopPropagation();   
   });



to "target","_self". I need to know where is this code in your template because the file is not the same but obviously there must be one that calls this action as there is a notification pop up in the template.
User avatar
Junior Boarder


cron