From db165dfb82b41ed8922127e6ed4e108bb5bf0731 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 30 Jun 2010 00:13:57 +0200 Subject: [PATCH] double-click on action values to edit --- templates/actions/index.html.ep | 10 ++++++++++ templates/actions/view.html.ep | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/actions/index.html.ep b/templates/actions/index.html.ep index 431e9b7..9a504b4 100644 --- a/templates/actions/index.html.ep +++ b/templates/actions/index.html.ep @@ -68,5 +68,15 @@ console.debug(this,link_html); }).css({ 'background': '#ffe' }); }); + $('label.checkbox_to_text span.value' ).live( 'dblclick', function() { + console.debug('checkbox to text',this); + var $checkbox = $(this).find('input[type=checkbox]'); + $(this).html( + '' + ); + + }); + + console.debug('ready'); }); diff --git a/templates/actions/view.html.ep b/templates/actions/view.html.ep index 4111df2..d70d3cc 100644 --- a/templates/actions/view.html.ep +++ b/templates/actions/view.html.ep @@ -16,10 +16,12 @@ % while ( @$params ) { % my $n = shift @$params; % my $v = shift @$params; -
  • % } -- 2.20.1