Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
338086c6
Commit
338086c6
authored
Jun 11, 2013
by
Jerome Mariette
Browse files
make button available considering checking
parent
c7494123
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/project_view.tpl
View file @
338086c6
...
...
@@ -205,8 +205,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<th
align=
"left"
colspan=
"7"
>
With selection :
<div
class=
"btn-group"
>
<button
id=
"add_user"
type=
"button"
class=
"btn btn-small"
><i
class=
"icon-plus"
></i>
add user
</button>
<button
id=
"del_user"
type=
"button"
class=
"btn btn-small"
><i
class=
"icon-minus"
></i>
delete user
</button>
<button
id=
"add_user"
type=
"button"
class=
"btn
nou-selection-btn
btn-small"
><i
class=
"icon-plus"
></i>
add user
</button>
<button
id=
"del_user"
type=
"button"
class=
"btn
multipleu-selection-btn
btn-small"
><i
class=
"icon-minus"
></i>
delete user
</button>
</div>
</th>
</tr>
...
...
ui/nG6/res/js/tx_nG6_pi1.js
View file @
338086c6
...
...
@@ -176,6 +176,14 @@ $(function () {
$
(
"
#chk_all_analysis
"
).
change
(
function
()
{
updateAnalysisButtonStatus
();
});
updateUsersButtonStatus
();
$
(
"
[id^=chk_user_]
"
).
change
(
function
()
{
updateUsersButtonStatus
();
});
$
(
"
#chk_all_user
"
).
change
(
function
()
{
updateUsersButtonStatus
();
});
// Init tables
var
projectTable
=
initProjectTable
(),
...
...
@@ -651,6 +659,17 @@ function updateAnalysisButtonStatus() {
$
(
"
.noa-selection-btn
"
).
each
(
function
(){
$
(
this
).
removeAttr
(
'
disabled
'
);
});
}
function
updateUsersButtonStatus
()
{
$
(
'
.multipleu-selection-btn
'
).
each
(
function
(){
if
(
$
(
"
:checked[id^=chk_user_]
"
).
size
()
==
0
)
{
$
(
this
).
attr
(
'
disabled
'
,
'
disabled
'
);
}
else
if
(
$
(
"
:checked[id^=chk_user_]
"
).
size
()
>
0
)
{
$
(
this
).
removeAttr
(
'
disabled
'
);
}
});
$
(
"
.nou-selection-btn
"
).
each
(
function
(){
$
(
this
).
removeAttr
(
'
disabled
'
);
});
}
/* Run table init */
function
initRunTable
()
{
var
runTable
=
null
;
...
...
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