Skip to content

Instantly share code, notes, and snippets.

@EliJDonahue
Created June 4, 2018 22:43
Show Gist options
  • Save EliJDonahue/a1d01ab263b9207b4198632a50d43dcc to your computer and use it in GitHub Desktop.
Save EliJDonahue/a1d01ab263b9207b4198632a50d43dcc to your computer and use it in GitHub Desktop.
A snippet of Innovator\Client\javascript\ItemsGrid\InBasketTaskGrid.js
var showModalDialogWithDelay = function(url, paramsObj, windowOptions, doRepopulateAfterDialog) {
alert("showing modal with delay");
setTimeout(function() {
windowOptions.resizable = true;
windowOptions.scroll = true;
windowOptions.status = false;
windowOptions.help = false;
paramsObj.content = url;
paramsObj.isPopup = true;
// var dialog = window.parent.ArasModules.Dialog.show('iframe', Object.assign({}, paramsObj, windowOptions));
var dialog = window.parent.ArasModules.MaximazableDialog.show('iframe', Object.assign({}, paramsObj, windowOptions));
dialog.promise.then(function(data) {
doSearch();
});
}, 10);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment