Commit 2219b453 authored by TravisCarden's avatar TravisCarden

By TravisCarden: Made it clear that "Hide descriptions" link only affects item descriptions.

parent ba2bf821
......@@ -27,8 +27,8 @@
$(this).closest('#checklistapi-checklist-form').toggleClass('compact-mode');
var is_compact_mode = $(this).closest('#checklistapi-checklist-form').hasClass('compact-mode');
$(this)
.text((is_compact_mode) ? Drupal.t('Show descriptions') : Drupal.t('Hide descriptions'))
.attr('title', (is_compact_mode) ? Drupal.t('Expand layout to include descriptions.') : Drupal.t('Compress layout by hiding descriptions.'))
.text((is_compact_mode) ? Drupal.t('Show item descriptions') : Drupal.t('Hide item descriptions'))
.attr('title', (is_compact_mode) ? Drupal.t('Expand layout to include item descriptions.') : Drupal.t('Compress layout by hiding item descriptions.'))
document.cookie = 'Drupal.visitor.checklistapi_compact_mode=' + ((is_compact_mode) ? 1 : 0);
return false;
});
......
......@@ -218,11 +218,11 @@ function theme_checklistapi_compact_link() {
$output = '<div class="compact-link">';
if (checklistapi_compact_mode()) {
$output .= l(
t('Show descriptions'),
t('Show item descriptions'),
current_path() . '/compact/off',
array(
'attributes' => array(
'title' => t('Expand layout to include descriptions.'),
'title' => t('Expand layout to include item descriptions.'),
),
'query' => drupal_get_destination(),
)
......@@ -230,11 +230,11 @@ function theme_checklistapi_compact_link() {
}
else {
$output .= l(
t('Hide descriptions'),
t('Hide item descriptions'),
current_path() . '/compact/on',
array(
'attributes' => array(
'title' => t('Compress layout by hiding descriptions.'),
'title' => t('Compress layout by hiding item descriptions.'),
),
'query' => drupal_get_destination(),
)
......
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