@ministryofjustice/frontend 1.6.3 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
[](https://github.com/semantic-release/semantic-release)
|
|
2
2
|
[](http://commitizen.github.io/cz-cli/)
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
4
8
|
|
|
5
9
|
# Ministry of Justice Frontend
|
|
6
10
|
|
package/moj/all.js
CHANGED
|
@@ -1163,8 +1163,8 @@ MOJFrontend.SortableTable.prototype.getTableRowsArray = function() {
|
|
|
1163
1163
|
|
|
1164
1164
|
MOJFrontend.SortableTable.prototype.sort = function(rows, columnNumber, sortDirection) {
|
|
1165
1165
|
var newRows = rows.sort($.proxy(function(rowA, rowB) {
|
|
1166
|
-
var tdA = $(rowA).find('td').eq(columnNumber);
|
|
1167
|
-
var tdB = $(rowB).find('td').eq(columnNumber);
|
|
1166
|
+
var tdA = $(rowA).find('td,th').eq(columnNumber);
|
|
1167
|
+
var tdB = $(rowB).find('td,th').eq(columnNumber);
|
|
1168
1168
|
var valueA = this.getCellValue(tdA);
|
|
1169
1169
|
var valueB = this.getCellValue(tdB);
|
|
1170
1170
|
if(sortDirection === 'ascending') {
|
|
@@ -104,8 +104,8 @@ MOJFrontend.SortableTable.prototype.getTableRowsArray = function() {
|
|
|
104
104
|
|
|
105
105
|
MOJFrontend.SortableTable.prototype.sort = function(rows, columnNumber, sortDirection) {
|
|
106
106
|
var newRows = rows.sort($.proxy(function(rowA, rowB) {
|
|
107
|
-
var tdA = $(rowA).find('td').eq(columnNumber);
|
|
108
|
-
var tdB = $(rowB).find('td').eq(columnNumber);
|
|
107
|
+
var tdA = $(rowA).find('td,th').eq(columnNumber);
|
|
108
|
+
var tdB = $(rowB).find('td,th').eq(columnNumber);
|
|
109
109
|
var valueA = this.getCellValue(tdA);
|
|
110
110
|
var valueB = this.getCellValue(tdB);
|
|
111
111
|
if(sortDirection === 'ascending') {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
to right,
|
|
10
10
|
$scrollableBgColor,
|
|
11
11
|
$scrollableBgColor,
|
|
12
|
-
$scrollableTransparentColor calc($scrollableShadowSize * 2)
|
|
12
|
+
$scrollableTransparentColor calc(var($scrollableShadowSize) * 2)
|
|
13
13
|
),
|
|
14
14
|
radial-gradient(
|
|
15
15
|
farthest-side at 0 50%,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
to left,
|
|
21
21
|
$scrollableBgColor,
|
|
22
22
|
$scrollableBgColor,
|
|
23
|
-
$scrollableTransparentColor calc($scrollableShadowSize * 2)
|
|
23
|
+
$scrollableTransparentColor calc(var($scrollableShadowSize) * 2)
|
|
24
24
|
),
|
|
25
25
|
radial-gradient(
|
|
26
26
|
farthest-side at 100% 50%,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/frontend",
|
|
3
3
|
"description": "The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.5",
|
|
5
5
|
"main": "moj/all.js",
|
|
6
6
|
"sass": "moj/all.scss",
|
|
7
7
|
"engines": {
|