Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
mathieu
technobel.sf
Commits
18fad11e
Commit
18fad11e
authored
May 23, 2018
by
Mat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test en console les boutons de tri par colonne et le select de pagination
parent
77424206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
src/AssoBundle/Resources/views/Ajax/Membre/mainDisplay.html.twig
...oBundle/Resources/views/Ajax/Membre/mainDisplay.html.twig
+15
-7
No files found.
src/AssoBundle/Resources/views/Ajax/Membre/mainDisplay.html.twig
View file @
18fad11e
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<a
href=
"javascript: void(0);"
id=
"association"
class=
"btn-sort"
>
Association
</a>
<a
href=
"javascript: void(0);"
id=
"association"
class=
"btn-sort"
>
Association
</a>
</th>
</th>
<th
scope=
"col"
>
<th
scope=
"col"
>
<a
href=
"javascript: void(0);"
id=
"action"
class=
"btn-sort"
>
Action
</a>
<a>
Action
</a>
</th>
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -216,15 +216,23 @@
...
@@ -216,15 +216,23 @@
form
);
form
);
});
});
let
stepform
=
document
.
querySelector
(
'
form#pagination
'
);
let
stepform
=
document
.
querySelector
(
'
form#pagination
select
'
);
stepform
.
addEventListener
(
'
change
'
,
function
(
e
)
{
stepform
.
addEventListener
(
'
change
'
,
function
(
e
)
{
console
.
log
(
'
change pagination
'
);
step
=
this
.
value
;
console
.
log
(
'
change step=
'
+
step
);
console
.
log
();
});
});
let
columns
=
[
'
id
'
,
'
firstname
'
,
'
lastname
'
,
'
email
'
];
let
columns
=
document
.
querySelectorAll
(
'
th[scope="col"] a.btn-sort
'
);
columns
.
forEach
(
function
(
column
)
{
columns
.
forEach
(
function
(
column
)
column
.
addEventListener
(
'
click
'
,
function
(
e
)
{
{
console
.
log
(
'
toggle column
'
);
let
col
=
column
.
getAttribute
(
'
id
'
);
column
.
addEventListener
(
'
click
'
,
function
(
e
)
{
console
.
log
(
'
toggle id=
'
+
col
+
'
order=
'
+
order
);
order
=
(
order
===
'
ASC
'
)
?
'
DESC
'
:
'
ASC
'
;
});
});
});
});
...
...
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