summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Brill <egore911@gmail.com>2013-11-07 21:37:05 +0100
committerChristoph Brill <egore911@gmail.com>2013-11-07 21:37:05 +0100
commit8b5eb0a2f4e6014fbad6ca900b2e3a741bce4220 (patch)
tree6edec68cdc2f05b2d3d730d27a7d9c5d249b8ac8
parent9769488092f5732136fa5d0e656dc623e77150d2 (diff)
Update the selected users cookie on click and not on postback
-rwxr-xr-xindex.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 6b88a37..22210ec 100755
--- a/index.php
+++ b/index.php
@@ -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/