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
Widget-promotion switch is now driven by a table.
[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
9f296ee
..
8e7102a
100644
(file)
--- a/
tools/htdocs/mkws-jquery.js
+++ b/
tools/htdocs/mkws-jquery.js
@@
-31,7
+31,6
@@
function _mkws_jquery_plugin ($) {
return;
}
return;
}
- debug("Calling dialog()");
$(id_popup).dialog({
closeOnEscape: true,
autoOpen: false,
$(id_popup).dialog({
closeOnEscape: true,
autoOpen: false,
@@
-46,12
+45,10
@@
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");
});
};
@@
-60,6
+57,9
@@
function _mkws_jquery_plugin ($) {
// service-proxy or pazpar2
pazpar2: function(config) {
// service-proxy or pazpar2
pazpar2: function(config) {
+ if (config == null || typeof config != 'object') {
+ config = {};
+ }
var id_popup = config.id_popup || "#mkwsPopup";
id_popup = id_popup.replace(/^#/, "");
var id_popup = config.id_popup || "#mkwsPopup";
id_popup = id_popup.replace(/^#/, "");