From 4259cad450fee703dc34ebe5322de994d06a5448 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 11 Dec 2012 15:07:27 -0800 Subject: Playing around with using x-editable, which isn't yet working. --- help/app/assets/javascripts/tickets.js.coffee | 6 ++++++ help/app/views/tickets/show.html.haml | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 help/app/assets/javascripts/tickets.js.coffee (limited to 'help/app') 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 -- cgit v1.2.3