FSN#37542 window.open() -> FcltMgr.windowopen to prevent tabnabbing
svn path=/Website/trunk/; revision=34629
This commit is contained in:
@@ -1252,6 +1252,19 @@ var FcltMgr =
|
||||
}
|
||||
});
|
||||
},
|
||||
windowopen: function(url, params)
|
||||
{
|
||||
params = params || {};
|
||||
var wnd = window.open();
|
||||
wnd.opener = null;
|
||||
wnd.location = url;
|
||||
try {
|
||||
wnd.focus;
|
||||
}
|
||||
catch(e) {
|
||||
// alert(e); ?
|
||||
}
|
||||
},
|
||||
confirm: function (tekst, params, fncallback)
|
||||
{
|
||||
if (typeof params == "function")
|
||||
|
||||
@@ -572,7 +572,7 @@ function __rsProcessResultset(processParams) // processParams wordt blind aan al
|
||||
<% }
|
||||
else
|
||||
{ %>
|
||||
window.open("<%=Request.ServerVariables("SCRIPT_NAME")%>?outputmode=" + poutputmode + "&autosortby=" + escape(autosortby) + "<%=safe.jsstring(transitQS())%>");
|
||||
FcltMgr.windowopen("<%=Request.ServerVariables("SCRIPT_NAME")%>?outputmode=" + poutputmode + "&autosortby=" + escape(autosortby) + "<%=safe.jsstring(transitQS())%>");
|
||||
<% } %>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user