projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fbf0641
)
documentation
author
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 10 Jul 2014 12:04:26 +0000
(12:04 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 10 Jul 2014 12:04:26 +0000
(12:04 +0000)
src/mkws-popup.js
patch
|
blob
|
history
diff --git
a/src/mkws-popup.js
b/src/mkws-popup.js
index
44736cc
..
bc54f3c
100644
(file)
--- a/
src/mkws-popup.js
+++ b/
src/mkws-popup.js
@@
-27,6
+27,7
@@
mkws.registerWidgetType('Popup', function() {
popup_window.each(function(i) {
var that = $(this);
popup_window.each(function(i) {
var that = $(this);
+ // all atributes are strings, convert them to integers here
var width = parseInt(that.attr("popup_width") || "800");
var height = parseInt(that.attr("popup_height") || "600");
var autoOpen = parseInt(that.attr("popup_autoOpen") || "0");
var width = parseInt(that.attr("popup_width") || "800");
var height = parseInt(that.attr("popup_height") || "600");
var autoOpen = parseInt(that.attr("popup_autoOpen") || "0");
@@
-48,7
+49,7
@@
mkws.registerWidgetType('Popup', function() {
close: function() {}
});
close: function() {}
});
- // open at search query submit
+ // open at search query submit: "input.mkwsButton"
var id_botton = that.attr("popup_button");
if (id_botton) {
$(id_botton).button().click(function() {
var id_botton = that.attr("popup_button");
if (id_botton) {
$(id_botton).button().click(function() {