diff options
author | Christoph Brill <egore911@gmail.com> | 2013-11-07 21:37:05 +0100 |
---|---|---|
committer | Christoph Brill <egore911@gmail.com> | 2013-11-07 21:37:05 +0100 |
commit | 8b5eb0a2f4e6014fbad6ca900b2e3a741bce4220 (patch) | |
tree | 6edec68cdc2f05b2d3d730d27a7d9c5d249b8ac8 | |
parent | 9769488092f5732136fa5d0e656dc623e77150d2 (diff) |
Update the selected users cookie on click and not on postback
-rwxr-xr-x | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -164,6 +164,8 @@ function addUser(username) { colorlistelement.innerHTML = \'<a href="javascript:addUser(\\\'\' + username + \'\\\');" style="color: inherit;">\' + username + \'</a>\'; colorlist.appendChild(colorlistelement); } + + document.cookie = \'stored_users=\' + escape(document.setup.highlight_names.value) + \'; path=/\'; } // Stuff for drag and drop copied from http://aktuell.de.selfhtml.org/artikel/dhtml/draganddrop/ |