1 /* generic function to open results in a popup window
6 $(document).ready(function () {
7 // mkws.registerWidgetType('WmkwsPopup', function() {
10 debug("init popup window");
13 alert("Error: jquery-ui.js is missing, did you include it after jQuery core in the HTML file?");
17 var popup_window = $(".WmkwsPopup");
19 debug("no popup found, skip");
22 debug("found popup windows: " + popup_window.length);
25 // more than one widget on a page are possible
26 popup_window.each(function (i) {
29 var width = parseInt(that.attr("popup_width") || "800");
30 var height = parseInt(that.attr("popup_height") || "600");
31 var autoOpen = parseInt(that.attr("popup_autoOpen") || "0");
32 var modal = parseInt(that.attr("popup_modal") || "0");
34 debug("Popup parameters: width: " + width + ", height: " + height + ", autoOpen: " + autoOpen);
40 modal: modal ? true : false,
50 // open at search query submit
51 var id_botton = that.attr("popup_button");
53 $(id_botton).button().click(function () {