2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00
Files
CATI_Tool/js/popup.js
Adam Zammit 78714121ec Fixed dialog box not appearing with new version of jquery / jquery ui
Fixed case not completing due to quotas with exclude_var_id of 0
Fixed notice on interface2 where $appointment  variable not specified
2015-08-03 16:00:05 +10:00

27 lines
544 B
JavaScript

function poptastic(url, title)
{
var elem = jQuery("#inpage");
if (elem.length > 0) {
elem = jQuery(elem[0]);
elem.dialog("close").dialog("destroy").remove();
}
jQuery('<iframe id="inpage" src="'+ url +'" />').dialog({
autoOpen: true,
title: title,
height: 700,
width: 650,
modal: true,
autoResize: false,
resizable: true,
overlay: {
opacity: 0.5,
background: "white"
}
}).width(620);
}
function closePopup()
{
jQuery("#inpage").dialog("close").dialog("destroy").remove();
}