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
debug function uses mkws.log rather than old mkws.debug.
[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
225b562
..
a093bfd
100644
(file)
--- a/
tools/htdocs/mkws-jquery.js
+++ b/
tools/htdocs/mkws-jquery.js
@@
-11,7
+11,7
@@
*/
function _mkws_jquery_plugin ($) {
function debug (string) {
*/
function _mkws_jquery_plugin ($) {
function debug (string) {
- mkws.debug("jquery.pazpar2: " + string);
+ mkws.log("jquery.pazpar2: " + string);
}
function init_popup(obj) {
}
function init_popup(obj) {
@@
-20,7
+20,7
@@
function _mkws_jquery_plugin ($) {
var height = config.height || 760;
var width = config.width || 880;
var id_button = config.id_button || "input.mkwsButton";
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_popup = config.id_popup || "#mkwsPopup";
debug("popup height: " + height + ", width: " + width);
debug("popup height: " + height + ", width: " + width);
@@
-57,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(/^#/, "");