From 06947f5d86f9d0026f75005aa2510cba0800072e Mon Sep 17 00:00:00 2001 From: bie Date: Fri, 11 Nov 2016 03:04:15 +0900 Subject: bruke orz-url --- ukulele.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ukulele.js b/ukulele.js index 846b924..c4f9073 100644 --- a/ukulele.js +++ b/ukulele.js @@ -117,8 +117,9 @@ document.addEventListener("DOMContentLoaded", function(e) { var orz = document.getElementById('orz'); if(orz) { + var url = orz.getAttribute('data-url'); orz.onclick = function(e) { - window.open("/orz"); + window.open(url); return false; } button(orz, "> sitat", marxup_quote); -- cgit v1.0