\r
return " ".join(classes)\r
\r
-def post_control(text, url, command=False, withprompt=False, confirm=False, title="", copy=False):\r
+def post_control(text, url, command=False, withprompt=False, confirm=False, title="", copy=False, extra_classes=[]):\r
classes = (command and "ajax-command" or " ") + (withprompt and " withprompt" or " ") + (confirm and " confirm" or " ") + \\r
(copy and " copy" or " ")\r
+\r
+ for extra_class in extra_classes:\r
+ classes += " %s" % extra_class\r
+\r
return {'text': text, 'url': url, 'classes': classes, 'title': title}\r
\r
\r