diff --git a/shared/static/scripts/sx-browser.js b/shared/static/scripts/sx-browser.js index 5598d02..2a9c82d 100644 --- a/shared/static/scripts/sx-browser.js +++ b/shared/static/scripts/sx-browser.js @@ -14,7 +14,7 @@ // ========================================================================= var NIL = Object.freeze({ _nil: true, toString: function() { return "nil"; } }); - var SX_VERSION = "2026-03-06T21:58:38Z"; + var SX_VERSION = "2026-03-06T21:59:13Z"; function isNil(x) { return x === NIL || x === null || x === undefined; } function isSxTruthy(x) { return x !== false && !isNil(x); } @@ -1842,7 +1842,7 @@ return postSwap(target); }); var timer = NIL; var lastVal = NIL; var listenTarget = (isSxTruthy(get(mods, "from")) ? domQuery(get(mods, "from")) : el); - return (isSxTruthy(listenTarget) ? domAddListener(listenTarget, eventName, function(e) { logInfo((String("sx:click ") + String(eventName) + String(" ") + String(domTagName(el)) + String(" href=") + String(domGetAttr(el, "href")) + String(" method=") + String(get(verbInfo, "method")) + String(" url=") + String(get(verbInfo, "url")))); + return (isSxTruthy(listenTarget) ? domAddListener(listenTarget, eventName, function(e) { logInfo((String("sx:click ") + String(eventName) + String(" ") + String(domTagName(el)) + String(" href=") + String(domGetAttr(el, "href")) + String(" method=") + String(get(verbInfo, "method")) + String(" url=") + String(get(verbInfo, "url")) + String(" delay=") + String(get(mods, "delay")) + String(" isGetLink=") + String((isSxTruthy((eventName == "click")) && isSxTruthy((get(verbInfo, "method") == "GET")) && isSxTruthy(domHasAttr(el, "href")) && !get(mods, "delay"))))); return (function() { var shouldFire = true; if (isSxTruthy(get(mods, "changed"))) { diff --git a/shared/sx/ref/orchestration.sx b/shared/sx/ref/orchestration.sx index 3e8d52f..6e57020 100644 --- a/shared/sx/ref/orchestration.sx +++ b/shared/sx/ref/orchestration.sx @@ -376,7 +376,12 @@ (log-info (str "sx:click " event-name " " (dom-tag-name el) " href=" (dom-get-attr el "href") " method=" (get verbInfo "method") - " url=" (get verbInfo "url"))) + " url=" (get verbInfo "url") + " delay=" (get mods "delay") + " isGetLink=" (and (= event-name "click") + (= (get verbInfo "method") "GET") + (dom-has-attr? el "href") + (not (get mods "delay"))))) (let ((should-fire true)) ;; Changed modifier: skip if value unchanged (when (get mods "changed")