function openAnswerQandADialog() {
var options = {
url: window.location.protocol +"//"+ window.location.host + _spPageContextInfo.webServerRelativeUrl+'Lists/FollowRecords/NewForm.aspx',
dialogReturnValueCallback: feedbackReceived,
title: "Add Follow Records"
};
SP.UI.ModalDialog.showModalDialog(options);
//SetSPDialogMax();
}
function feedbackReceived(dialogResult, returnValue) {
if (dialogResult == SP.UI.DialogResult.OK) {
location.href = location.href;
} else {
return false;
}
}
No comments:
Post a Comment