summaryrefslogtreecommitdiff
path: root/help/app
diff options
context:
space:
mode:
Diffstat (limited to 'help/app')
-rw-r--r--help/app/assets/javascripts/tickets.js.coffee6
-rw-r--r--help/app/views/tickets/show.html.haml6
2 files changed, 12 insertions, 0 deletions
diff --git a/help/app/assets/javascripts/tickets.js.coffee b/help/app/assets/javascripts/tickets.js.coffee
new file mode 100644
index 0000000..039ce91
--- /dev/null
+++ b/help/app/assets/javascripts/tickets.js.coffee
@@ -0,0 +1,6 @@
+$("#title").editable({
+ type: 'text',
+ pk: 1,
+ url: '/blah',
+ title: 'TEXT here'
+ }); \ No newline at end of file
diff --git a/help/app/views/tickets/show.html.haml b/help/app/views/tickets/show.html.haml
index d9f594b..3e4acb9 100644
--- a/help/app/views/tickets/show.html.haml
+++ b/help/app/views/tickets/show.html.haml
@@ -1,4 +1,10 @@
%h2= @ticket.title
+
+= #%a#title.editable.editable-click{"data-name" => "title", "data-original-title" => "Enter username", "data-resource" => "post", "data-type" => "text", "data-url" => ticket_path(@ticket.id), "data-pk" => @ticket.id, :href => "#"} test
+
+%a#title.editable.editable-click{:href => "#"} test
+
+%p
- if @ticket.email
email:
= @ticket.email