projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add logging for popup.
[mkws-moved-to-github.git]
/
tools
/
htdocs
/
mkws-jquery.js
diff --git
a/tools/htdocs/mkws-jquery.js
b/tools/htdocs/mkws-jquery.js
index
8123b7d
..
55cad95
100644
(file)
--- a/
tools/htdocs/mkws-jquery.js
+++ b/
tools/htdocs/mkws-jquery.js
@@
-19,8
+19,8
@@
function _mkws_jquery_plugin ($) {
var height = config.height || 760;
var width = config.width || 880;
var height = config.height || 760;
var width = config.width || 880;
- var id_button = config.id_button || "input#mkwsButton";
- var id_popup = config.id_popup || "#mkwsPopup";
+ var id_button = config.id_button || "input.mkwsButton";
+ var id_popup = config.id_popup || ".mkwsPopup";
debug("popup height: " + height + ", width: " + width);
debug("popup height: " + height + ", width: " + width);
@@
-31,6
+31,7
@@
function _mkws_jquery_plugin ($) {
return;
}
return;
}
+ debug("Calling dialog()");
$(id_popup).dialog({
closeOnEscape: true,
autoOpen: false,
$(id_popup).dialog({
closeOnEscape: true,
autoOpen: false,
@@
-45,10
+46,12
@@
function _mkws_jquery_plugin ($) {
},
close: function() { }
});
},
close: function() { }
});
+ debug("Called dialog()");
$(id_button)
.button()
.click(function() {
$(id_button)
.button()
.click(function() {
+ debug("Opening dialog()");
$(id_popup).dialog("open");
});
};
$(id_popup).dialog("open");
});
};