js/main.js
author Markus Bröker <broeker.markus@googlemail.com>
Thu, 12 Nov 2015 14:39:16 +0100
changeset 0 4869aea77e21
child 7 3ed6f90e97d9
permissions -rw-r--r--
Bröker-Framework BFW-1

function route(url) {
    window.location.href = url;
}

$(document).ready(function () {
    $('.clickable').click(function () {
        var tidStr = $(this).attr('id');
        var tid = tidStr.substring(3);

        window.location.href = "/tickets/?tid=" + tid;
    });

    tinymce.init({selector: 'textarea'});
});