js/main.js
changeset 7 3ed6f90e97d9
parent 0 4869aea77e21
child 43 682bd6e707ef
equal deleted inserted replaced
6:6c23ee543e0e 7:3ed6f90e97d9
     1 function route(url) {
     1 function route(url) {
     2     window.location.href = url;
     2     window.location.href = url;
     3 }
     3 }
     4 
     4 
     5 $(document).ready(function () {
     5 $(document).ready(function () {
     6     $('.clickable').click(function () {
     6     tinymce.init({selector: '.tiny-mce textarea'});
     7         var tidStr = $(this).attr('id');
       
     8         var tid = tidStr.substring(3);
       
     9 
       
    10         window.location.href = "/tickets/?tid=" + tid;
       
    11     });
       
    12 
       
    13     tinymce.init({selector: 'textarea'});
       
    14 });
     7 });