Added two new javascript functions that allow a link or form post to take place in the parent window rather than the pop up itself
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796932 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -163,6 +163,23 @@ function popUpPrint(printserver, screen1, screen2, screen3) {
|
||||
}
|
||||
}
|
||||
|
||||
// Post a form from a pop up using the parent window
|
||||
function doPostViaParent(formName) {
|
||||
var theForm = document[formName];
|
||||
var newForm = theForm.cloneNode(true);
|
||||
var hiddenDiv = document.createElement('div');
|
||||
hiddenDiv.style.visibility = 'hidden';
|
||||
hiddenDiv.appendChild(newForm);
|
||||
window.opener.document.body.appendChild(hiddenDiv);
|
||||
newForm.submit();
|
||||
window.opener.focus();
|
||||
}
|
||||
// From a child window, navigate the parent window to the supplied url
|
||||
function doGetViaParent(url) {
|
||||
window.opener.location = url;
|
||||
window.opener.focus();
|
||||
}
|
||||
|
||||
// hidden div functions
|
||||
|
||||
function getStyleObject(objectId) {
|
||||
|
||||
Reference in New Issue
Block a user