From: Dobrica Pavlinusic Date: Tue, 29 Jun 2010 22:13:57 +0000 (+0200) Subject: double-click on action values to edit X-Git-Url: http://git.rot13.org/?p=MojoFacets.git;a=commitdiff_plain;h=db165dfb82b41ed8922127e6ed4e108bb5bf0731 double-click on action values to edit --- 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; -
  • % }