ucb_rails_user 4.0.5 → 4.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16591e2634ccad69a102f688132f754064005db006c45a1cdc59a66f186e299a
4
- data.tar.gz: 197103ec64e41e156973745bd90cf810c6ac85b1d0e945395fb300d322326f0c
3
+ metadata.gz: 7279a30a91284da4c8a0ab5af25cd83faf75db9a8244775e03c80bdb847c9d6f
4
+ data.tar.gz: 4ac6746159b76a4b55b215ea68440880a007ae7dd954443e27556ee37cf822ce
5
5
  SHA512:
6
- metadata.gz: 66e533e5bcf094769bd727ef8e9c651b9e2b3720a82ab36ebcdd0e27f5403db745fe44af8931ee68295edd95cc071771cd65014123a2b972125617b14934bf14
7
- data.tar.gz: 1031c24d8efe19130e8f8f4b6e961b7ef15447f27c7b0e35da5940979d848015f4099a7a7d8d41b24a921311130a87965349db2f39d314b08dcea8d74cb67891
6
+ metadata.gz: b601ecbbd37380aa231d1e82aabdbe39cff34e3e6e1137bf6491f3dea834f9f8179d2488054f6681d12c9eef9b826681b15ff70b2ddbf987e994ed3cd6b556af
7
+ data.tar.gz: f6169dd04c1e73d4f78a0397f4e02ef6345ee9c8ca39ee70ebbcb74dbcced20693b1671926cb35a32428da8bc0414b5d26c8e4abb2f2005f69b83477e5bd7969
@@ -18,11 +18,16 @@ var addDatatablesToSearchResults = function () {
18
18
  }
19
19
 
20
20
  var addDatatablesToUsersTable = function () {
21
+ var unsorted_columns = $('.ucb-rails-users-table th.unsorted').map((i, e) => $(e).index()).toArray()
22
+ if (unsorted_columns === []) {
23
+ var unsorted_columns = $(".ucb-rails-users-table th:contains('Edit'),.ucb-rails-users-table th:contains('Delete')").map((i, e) => $(e).index()).toArray()
24
+ }
25
+
21
26
  $('.ucb-rails-users-table').dataTable({
22
27
  searching: true,
23
28
  order: [[ 3, "asc" ]],
24
29
  columnDefs: [ {
25
- targets: [8, 9],
30
+ targets: unsorted_columns,
26
31
  orderable: false
27
32
  }],
28
33
  })
@@ -14,8 +14,8 @@
14
14
  %th.dt Last Login
15
15
  %th UID
16
16
  %th Employee ID
17
- %th.min Edit
18
- %th.min Delete
17
+ %th.min.unsorted Edit
18
+ %th.min.unsorted Delete
19
19
  %tbody.highlight
20
20
  = render partial: "ucb_rails_user/users/user", collection: @users
21
21
 
@@ -1,3 +1,3 @@
1
1
  module UcbRailsUser
2
- VERSION = '4.0.5'
2
+ VERSION = '4.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_rails_user
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.5
4
+ version: 4.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Downey
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-03-29 00:00:00.000000000 Z
14
+ date: 2021-06-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails