Skip to content

Commit 191c9a0

Browse files
authored
fix bug with html buttons (#1043)
1 parent a06beba commit 191c9a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/__HELPERS/html.dm

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/proc/button_element(trg, text, action, class, style)
2-
return "<a href='?src=\ref[trg];[action]' onClick='event.stopPropagation();' [class ? "class='[class]'" : ""] style='cursor:pointer;[style]'>[text]</a>"
2+
return "<a href='byond://?src=\ref[trg];[action]' onClick='event.stopPropagation();' [class ? "class='[class]'" : ""] style='cursor:pointer;[style]'>[text]</a>"
33

44
/proc/color_button_element(trg, color, action)
5-
return "<a href='?src=\ref[trg];[action]' onClick='event.stopPropagation();' class='box' style='background-color: [color];cursor: pointer'></a>"
5+
return "<a href='byond://?src=\ref[trg];[action]' onClick='event.stopPropagation();' class='box' style='background-color: [color];cursor: pointer'></a>"
66

77
/// Display a DM icon in a a browser.
88
/proc/icon_element(icon, state, dir, moving, frame, style)

0 commit comments

Comments
 (0)