stroke over hidden actions
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 30 Jun 2010 13:11:31 +0000 (15:11 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 30 Jun 2010 13:11:31 +0000 (15:11 +0200)
public/mojo_facets.css
templates/actions/index.html.ep

index b610cc7..9362a18 100644 (file)
@@ -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;
index 9a504b4..b8ee3af 100644 (file)
@@ -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(
                                        $('<input type=button value=hide>').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' );
                                        })
                                )
                                ;