From ed30bfc566294012ea170ea8bbb0a6199675ff45 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 30 Jun 2010 15:11:31 +0200 Subject: [PATCH] stroke over hidden actions --- public/mojo_facets.css | 9 +++++++++ templates/actions/index.html.ep | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/mojo_facets.css b/public/mojo_facets.css index b610cc7..9362a18 100644 --- a/public/mojo_facets.css +++ b/public/mojo_facets.css @@ -163,6 +163,15 @@ form.action_filter { float: right; } +.action_view { + border: 1px dashed #ccc; +} + +.action_hide { + text-decoration: line-through; + color: black; +} + .bytes { text-align: right; font-family: monospace; diff --git a/templates/actions/index.html.ep b/templates/actions/index.html.ep index 9a504b4..b8ee3af 100644 --- a/templates/actions/index.html.ep +++ b/templates/actions/index.html.ep @@ -46,11 +46,12 @@ $(document).ready( function(){ var form = $(data).filter('form'); console.debug('ajax',e,form); e.html( form ) - .addClass( 'action_box' ) + .addClass( 'action_view' ) + .removeClass( 'action_hide' ) .append( $('').click( function() { console.debug(this,link_html); - e.html( link_html ).removeClass( 'action_box' ).addClass( 'action_viewed' ); + e.html( link_html ).removeClass( 'action_view' ).addClass( 'action_hide' ); }) ) ; -- 2.20.1