1 /* generic function to open results in a popup window
7 $(document).ready(function () {
8 // mkws.registerWidgetType('PopupWindow', function() {
11 debug("init popup window");
14 alert("Error: jquery-ui.js is missing, did you include it after jQuery core in the HTML file?");
18 var popup = $(".PopupWindow");
20 debug("no popup found");
23 debug("found popup windows: " + popup.length);
26 var width = parseInt($(popup).attr("popup_width") || "800");
27 var height = parseInt($(popup).attr("popup_height") || "600");
28 var autoOpen = parseInt($(popup).attr("popup_autoOpen") || "0");
39 $(popup).dialog("close");