js/main.js
changeset 0 4869aea77e21
child 7 3ed6f90e97d9
new file mode 100644
--- /dev/null
+++ b/js/main.js
@@ -0,0 +1,14 @@
+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'});
+});
\ No newline at end of file