By default Urchin 5 seems to want to open reports in a new window. This can be a little annoying. To change this, we just need to update the javascript function that gets run when you click on the "View Report" link.
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
vi /usr/local/urchin/htdocs/ujs/admin.js +434
1vi /usr/local/urchin/htdocs/ujs/admin.js +434
You should see the following code:
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
mywin = window.open('',myname);
mywin.location.href = url;
mywin.focus();
1mywin = window.open('',myname);
2
3mywin.location.href = url;
4mywin.focus();
We're going to comment it out and add our own code:
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
//mywin = window.open('',myname);
//mywin.location.href = url;
//mywin.focus();
window.location.href=url;
1//mywin = window.open('',myname);
2
3//mywin.location.href = url;
4
5//mywin.focus();
6
7window.location.href=url;
After clearing our cache, the reports open in the same window.