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
refactor
[mkws-moved-to-github.git]
/
experiments
/
spclient
/
mkws.js
diff --git
a/experiments/spclient/mkws.js
b/experiments/spclient/mkws.js
index
21cd04b
..
3eb4931
100644
(file)
--- a/
experiments/spclient/mkws.js
+++ b/
experiments/spclient/mkws.js
@@
-384,7
+384,7
@@
function mkws_html_all(data) {
sort_default: "relevance",
perpage_default: 20,
query_width: 50,
sort_default: "relevance",
perpage_default: 20,
query_width: 50,
- mkws_switch: true, /* show/hide Records|Targets menu */
+ switch: true, /* show/hide Records|Targets menu */
dummy: "dummy"
};
dummy: "dummy"
};
@@
-394,8
+394,6
@@
function mkws_html_all(data) {
config[k] = data[k];
}
config[k] = data[k];
}
- mkws_html_switch(config);
-
// For some reason, doing this programmatically results in
// document.search.query being undefined, hence the raw HTML.
$("#mkwsSearch").html('\
// For some reason, doing this programmatically results in
// document.search.query being undefined, hence the raw HTML.
$("#mkwsSearch").html('\
@@
-426,13
+424,9
@@
function mkws_html_all(data) {
</table>\
</div>');
</table>\
</div>');
- $("#mkwsTargets").html('\
- <div id="bytarget">\
- No information available yet.\
- </div>');
- $("#mkwsTargets").css("display", "none");
-
+ mkws_html_switch(config);
mkws_service_proxy_auth(config.service_proxy_auth);
mkws_service_proxy_auth(config.service_proxy_auth);
+
domReady();
}
domReady();
}
@@
-449,7
+443,13
@@
function mkws_html_switch(config) {
text: "Targets"
}));
text: "Targets"
}));
- if (!config.mkws_switch) {
+ $("#mkwsTargets").html('\
+ <div id="bytarget">\
+ No information available yet.\
+ </div>');
+ $("#mkwsTargets").css("display", "none");
+
+ if (!config.switch) {
$("#mkwsSwitch").css("display", "none");
}
}
$("#mkwsSwitch").css("display", "none");
}
}