From: Dobrica Pavlinusic Date: Wed, 30 Jun 2010 13:11:31 +0000 (+0200) Subject: stroke over hidden actions X-Git-Url: http://git.rot13.org/?p=MojoFacets.git;a=commitdiff_plain;h=ed30bfc566294012ea170ea8bbb0a6199675ff45 stroke over hidden actions --- 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' ); }) ) ;