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 $(popup).each(function (i) {
27 var width = parseInt(this.attr("popup_width") || "800");
28 var height = parseInt(this.attr("popup_height") || "600");
29 var autoOpen = parseInt(this.attr("popup_autoOpen") || "0");
31 debug("Popup parameters: width: " + width + ", height: " + height + ", autoOpen: " + autoOpen);
41 $(this).dialog("close");