Commits

Anonymous committed 7865841

send-script: move towards JQuery migration. Backwards-compatible.

Comments (0)

Files changed (1)

                   (string script)
                   (list (ps* script)))))
     (if (ajax-request-p)
-      (let ((code (with-javascript-to-string script)))
+      (let ((code (if (equalp (hunchentoot:header-in* "X-Weblocks-Client") "JQuery")
+                    script
+                    (with-javascript-to-string script))))
         (declare (special *before-ajax-complete-scripts* *on-ajax-complete-scripts*))
         (ecase place
           (:before-load (push code *before-ajax-complete-scripts*))