summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2012-12-11 15:07:27 -0800
committerjessib <jessib@leap.se>2012-12-11 15:07:27 -0800
commit4259cad450fee703dc34ebe5322de994d06a5448 (patch)
tree8c07fe6f44379033a0fc677176dd8c8f935ad4a1 /help
parent7a9a4f4e7bd090fd27e05b03f93832d79f5f8db2 (diff)
Playing around with using x-editable, which isn't yet working.
Diffstat (limited to 'help')
-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