Hello there,

I'm working with Joomla extenstion JomSocial. Here is the thing; I need to edit a javascript but I have no experience with javascript at all and I do not know where to start.

Just found your forum and thought I'd give it a try and ask you guys. Please let me know what info I need to provide you in order for you to help me. I will try my best to describe below.


Jomsocial, as mentioned, is an extension for Joomla. It looks a lot like Facebook. My question is related to Jomsocials notification area.

More specifically the pop-up window that appears when clicking "notifications". See screenshot below;


I am trying to find out where I edit the code that decides what happens when I click the "close" button. I was able to find this code using Chrome Developer Tools;

<a href="javascript:void(0);" onclick="cWindowHide();" id="cwin_close_btn"></a>
Where would you go to edit this javascript?

I want to replace onclick="cWindowHide();" with onClick="window.location.reload()" so that when closing the notifications pop-up window, the whole site refreshes.

I have no idea what to do with this, but found the code above mentioned in the files


Though, nothing happens when I edit these files to reflect the prefered change.

If you want to visit the site, please go to www.e-share.dk and use login guest/guest

Thank you very much in advance!