From ad6c8c89b077c715d25c109a07910bea3edaca59 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Tue, 10 Mar 2015 08:32:52 +0100 Subject: Second try to fix the josm button problem. --- web/public/js/taginfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3