|
@@ -25,15 +25,6 @@
|
|
|
]
|
|
]
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- $('.datatable').on('click', 'tbody>tr', function () {
|
|
|
|
|
- var sel = getSelection().toString(); // verifie qu'il ne s'agit pas d'une selection de texte
|
|
|
|
|
- if (!sel && $(this).attr('data-url') !== undefined)
|
|
|
|
|
- {
|
|
|
|
|
- var url = $(this).data('url');
|
|
|
|
|
- window.location.href = url;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
// Une datatable responsive simplifiée (sans pagination, recherche...etc).
|
|
// Une datatable responsive simplifiée (sans pagination, recherche...etc).
|
|
|
$('.simple-datatable').DataTable({
|
|
$('.simple-datatable').DataTable({
|
|
|
"language": {
|
|
"language": {
|
|
@@ -47,6 +38,14 @@
|
|
|
ordering: true
|
|
ordering: true
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ $('.datatable, .simple-datatable').on('click', 'tbody>tr', function () {
|
|
|
|
|
+ var sel = getSelection().toString(); // verifie qu'il ne s'agit pas d'une selection de texte
|
|
|
|
|
+ if (!sel && $(this).attr('data-url') !== undefined) {
|
|
|
|
|
+ var url = $(this).data('url');
|
|
|
|
|
+ window.location.href = url;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
//Conservation de la trace (pages d'admin)
|
|
//Conservation de la trace (pages d'admin)
|
|
|
$("a.start-trace").on("click", function () {
|
|
$("a.start-trace").on("click", function () {
|
|
|
sessionStorage.setItem("trace", window.location);
|
|
sessionStorage.setItem("trace", window.location);
|