mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-06-18 01:47:07 +08:00
8 lines
217 B
CoffeeScript
8 lines
217 B
CoffeeScript
$ ->
|
|
$('.action-create').click ->
|
|
request '/ticket/create/',
|
|
title: $('.input-title').val()
|
|
content: $('.input-content').val()
|
|
, (result) ->
|
|
location.href = "/ticket/view/?id=#{result.id}"
|