aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-03-10 08:32:52 +0100
committerJochen Topf <jochen@topf.org>2015-03-10 08:32:52 +0100
commitad6c8c89b077c715d25c109a07910bea3edaca59 (patch)
tree89e5fadd172fd0740b3b7cdaa120b97d83831f64
parentdfc378e99c74fade1421fad159e583989b96406e (diff)
downloadtaginfo-ad6c8c89b077c715d25c109a07910bea3edaca59.tar
taginfo-ad6c8c89b077c715d25c109a07910bea3edaca59.tar.gz
Second try to fix the josm button problem.
-rw-r--r--web/public/js/taginfo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index 0ca72d9..1d3994f 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -744,7 +744,7 @@ function comparison_list_change(key, value) {
/* ============================ */
function activate_josm_button() {
- if (jQuery('#josm_button')) {
+ if (jQuery('#josm_button').length != 0) {
if (window.location.protocol == "https:") {
var url = jQuery('#josm_button')[0].href.replace('http://localhost:8111/', 'https://localhost:8112/');
jQuery('#josm_button')[0].href = url;