Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
dd780fb4
Commit
dd780fb4
authored
Mar 29, 2011
by
Christodoulos Psaltis
Browse files
Change labels of confirmation buttons, ref #209
parent
3c0c5b08
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/static/synnefo.js
View file @
dd780fb4
...
...
@@ -27,6 +27,16 @@ function update_confirmations(){
if
(
pending_actions
.
length
>
1
||
$
.
cookie
(
"
list
"
)
==
'
1
'
&&
pending_actions
.
length
==
1
){
// if more than one pending action show multiple confirm box
$
(
'
div.confirm_multiple span.actionLen
'
).
text
(
pending_actions
.
length
);
// set the label of the buttons in list view
if
(
$
.
cookie
(
"
list
"
)
==
'
1
'
)
{
$
(
'
div.confirm_multiple button.yes
'
).
text
(
'
Confirm
'
);
$
(
'
div.confirm_multiple button.no
'
).
text
(
'
Cancel
'
);
}
// set the label of the buttons in standard view
else
{
$
(
'
div.confirm_multiple button.yes
'
).
text
(
'
Confirm All
'
);
$
(
'
div.confirm_multiple button.no
'
).
text
(
'
Cancel All
'
);
}
$
(
'
div.confirm_multiple
'
).
show
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment