Commit 58583dfa authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4539 (Link overlays not working correctly when running off non-standard port)

parent 2cd6275b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ function open_link_as_overlay(ob,width,height,target)
		if ((typeof width=='undefined') || (!width)) var width='800';
		if ((typeof height=='undefined') || (!height)) var height='auto';
		var url=(typeof ob.href=='undefined')?ob.action:ob.href;
		if (/:\/\/(.[^\/]+)/.exec(url)[1]!=window.location.hostname) return true; // Cannot overlay, different domain
		if (/:\/\/(.[^:\/]+)/.exec(url)[1]!=window.location.hostname) return true; // Cannot overlay, different domain
		if ((typeof target=='undefined') || (!target)) var target='_top';
		var url_stripped=url.replace(/#.*/,'');
		var new_url=url_stripped+((url_stripped.indexOf('?')==-1)?'?':'&')+'wide_high=1'+url.replace(/^[^\#]+/,'');