Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
checklistapi
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
checklistapi
Commits
2219b453
Commit
2219b453
authored
Sep 18, 2012
by
Travis Carden
Browse files
Options
Downloads
Patches
Plain Diff
By TravisCarden: Made it clear that "Hide descriptions" link only affects item descriptions.
parent
ba2bf821
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
checklistapi.js
+2
-2
2 additions, 2 deletions
checklistapi.js
checklistapi.pages.inc
+4
-4
4 additions, 4 deletions
checklistapi.pages.inc
with
6 additions
and
6 deletions
checklistapi.js
+
2
−
2
View file @
2219b453
...
...
@@ -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
;
});
...
...
This diff is collapsed.
Click to expand it.
checklistapi.pages.inc
+
4
−
4
View file @
2219b453
...
...
@@ -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
(),
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment