[FIX] cookie consent: Correct mistaken consent when using checkbox (not checked was ignored), make dialog mode modal and add an event to trigger custom js handlers on granting consent

git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/13.x@52166 b456876b-0849-0410-b77d-98878d47e9d5