From 99a3d358490e2db8feec07ddfdbf676a8c4c868a Mon Sep 17 00:00:00 2001 From: lombardofr Date: Sun, 6 Jan 2019 19:41:34 +0100 Subject: [PATCH] column ordering Change-Id: Ic39dcc67d0676259c112a7b306bc45233e9f3d92 Signed-off-by: lombardofr --- instancehandler/template/instance_list.html | 9 ++++++--- instancehandler/template/instance_operations_list.html | 6 ++++-- packagehandler/template/package_list.html | 9 ++++++--- projecthandler/template/project/projectlist.html | 3 ++- sdnctrlhandler/template/sdn_list.html | 3 ++- userhandler/templates/user_list.html | 3 ++- vimhandler/template/vim_list.html | 3 ++- 7 files changed, 24 insertions(+), 12 deletions(-) diff --git a/instancehandler/template/instance_list.html b/instancehandler/template/instance_list.html index 39d9b3c..067dcb5 100644 --- a/instancehandler/template/instance_list.html +++ b/instancehandler/template/instance_list.html @@ -184,7 +184,8 @@ ''; return template; }, - "targets": 5 + "targets": 5, + "orderable": false }, ], @@ -229,7 +230,8 @@ ' ' + ' '; }, - "targets": 5 + "targets": 5, + "orderable": false }, ], 'pdu': [ @@ -277,7 +279,8 @@ ' class="far fa-trash-alt">'+ ' '; }, - "targets": 5 + "targets": 5, + "orderable": false } ] }; diff --git a/instancehandler/template/instance_operations_list.html b/instancehandler/template/instance_operations_list.html index c4b352f..1568717 100644 --- a/instancehandler/template/instance_operations_list.html +++ b/instancehandler/template/instance_operations_list.html @@ -159,9 +159,11 @@ ' \n' + ' '; }, - "targets": 5 + "targets": 5, + "orderable": false } - ] + ], + "order": [[ 3, "asc" ]] }); diff --git a/packagehandler/template/package_list.html b/packagehandler/template/package_list.html index 9aebd12..7befd12 100644 --- a/packagehandler/template/package_list.html +++ b/packagehandler/template/package_list.html @@ -131,7 +131,8 @@ return result }, - "targets": 5 + "targets": 5, + "orderable": false }], 'vnf': [ { @@ -150,7 +151,8 @@ "render": function (data, type, row) { return row['_admin']['type'] || ''; }, - "targets": 2 + "targets": 2, + "orderable": false }, { "render": function (data, type, row) { @@ -202,7 +204,8 @@ return result }, - "targets": 6 + "targets": 6, + "orderable": false }] }; function refreshTable() { diff --git a/projecthandler/template/project/projectlist.html b/projecthandler/template/project/projectlist.html index a90fec8..17382e4 100644 --- a/projecthandler/template/project/projectlist.html +++ b/projecthandler/template/project/projectlist.html @@ -127,7 +127,8 @@ ' \n' + ' '; }, - "targets": 3 + "targets": 3, + "orderable": false } ] }); diff --git a/sdnctrlhandler/template/sdn_list.html b/sdnctrlhandler/template/sdn_list.html index da5526f..c42f51c 100644 --- a/sdnctrlhandler/template/sdn_list.html +++ b/sdnctrlhandler/template/sdn_list.html @@ -139,7 +139,8 @@ 'onclick="javascript:deleteSDN(\''+row['_id']+'\', \''+ row["name"] +'\')" data-toggle="tooltip" data-placement="top" data-container="body" title="Delete">' + ''; }, - "targets": 6 + "targets": 6, + "orderable": false } ] }); diff --git a/userhandler/templates/user_list.html b/userhandler/templates/user_list.html index 2a0092f..87753c6 100644 --- a/userhandler/templates/user_list.html +++ b/userhandler/templates/user_list.html @@ -138,7 +138,8 @@ '
  • Delete
  • '; }, - "targets": 5 + "targets": 5, + "orderable": false } ] }); diff --git a/vimhandler/template/vim_list.html b/vimhandler/template/vim_list.html index adc823a..ba38f64 100644 --- a/vimhandler/template/vim_list.html +++ b/vimhandler/template/vim_list.html @@ -127,7 +127,8 @@ 'onclick="javascript:deleteVim(\''+row['_id']+'\', \''+ row["name"] +'\')" data-toggle="tooltip" data-placement="top" data-container="body" title="Delete">' + ''; }, - "targets": 5 + "targets": 5, + "orderable": false } ] }); -- 2.17.1