// "use strict";
$(document).ready(function () {
- // mkws.registerWidgetType('PopupWindow', function() {
+// mkws.registerWidgetType('WmkwsPopup', function() {
var $ = mkws.$;
var debug = mkws.log;
debug("init popup window");
return;
}
- var popup_window = $(".PopupWindow");
+ var popup_window = $(".WmkwsPopup");
if (!popup_window) {
debug("no popup found, skip");
return;
debug("found popup windows: " + popup_window.length);
}
+ // more than one widget on a page are possible
popup_window.each(function (i) {
var that = $(this);
},
close: function () {}
});
+
+ // open at search query submit
+ var id_botton = that.attr("popup_button");
+ if (id_botton) {
+ $(id_botton).button().click(function () {
+ that.dialog("open");
+ });
+ }
});
});