From ed6c499940e9867ce98902d25ffbf4d0b1c88598 Mon Sep 17 00:00:00 2001 From: arno Date: Sun, 15 Aug 2010 15:39:14 +0200 Subject: [PATCH] fixes: termsofuse were sometimes not displayed --- public/js/syj.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/syj.js b/public/js/syj.js index 923e93d..3c4bece 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -597,13 +597,15 @@ var SYJUserClass = Class.create(SYJModalClass, { $$("#user_termsofuse_anchor, #geom_termsofuse_anchor").invoke('observe', "click", function(evt) { if (!this.toubox) { - $("termsofusearea").show(); - $("termsofuseiframe").setAttribute("src", evt.target.href); this.toubox = new SimpleBox($("termsofusearea"), { closeMethods: ["onescapekey", "onouterclick", "onbutton"] }); } this.toubox.show(); + if (!$("termsofuseiframe").getAttribute("src")) { + $("termsofusearea").show(); + $("termsofuseiframe").setAttribute("src", evt.target.href); + } evt.stop(); }.bindAsEventListener(this)); -- 2.39.2