Commit b9fd6400 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Dijon: remove count from clear completed button

parent 1baf0df4
...@@ -28,17 +28,13 @@ ...@@ -28,17 +28,13 @@
}, },
renderCounts: function( numTodosTotal, numTodosActive ) { renderCounts: function( numTodosTotal, numTodosActive ) {
var numTodosCompleted = numTodosTotal - numTodosActive, var numTodosCompleted = numTodosTotal - numTodosActive,
countTitle = '<strong>' + numTodosActive + '</strong> ' + this.pluralizeUtil.pluralize( numTodosActive, 'item' ) + ' left', countTitle = '<strong>' + numTodosActive + '</strong> ' + this.pluralizeUtil.pluralize( numTodosActive, 'item' ) + ' left';
clearTitle = 'Clear completed (' + numTodosCompleted + ')';
// Only show the footer when there are at least one todo. // Only show the footer when there are at least one todo.
$footer.toggle( !!numTodosTotal ); $footer.toggle( !!numTodosTotal );
// Active todo count // Toggle clear button
$count.html( countTitle ); $clearBtn.toggle( !!numTodosCompleted );
// Toggle clear button and update title
$clearBtn.text( clearTitle ).toggle( !!numTodosCompleted );
} }
}; };
}; };
......
...@@ -316,20 +316,10 @@ html #clear-completed:active { ...@@ -316,20 +316,10 @@ html #clear-completed:active {
line-height: 20px; line-height: 20px;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
visibility: hidden;
position: relative; position: relative;
} }
#clear-completed::after { #clear-completed:hover {
visibility: visible;
content: 'Clear completed';
position: absolute;
top: 0;
right: 0;
white-space: nowrap;
}
#clear-completed:hover::after {
text-decoration: underline; text-decoration: underline;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment