Skip to content

Commit cbe634b

Browse files
Merge pull request #471 from bleathem/branch-4.0-dev
Updated 4.0-dev to PatternFly 3.25.0 and jQuery 3
2 parents 54ee2f1 + 0d104bb commit cbe634b

File tree

14 files changed

+50
-294
lines changed

14 files changed

+50
-294
lines changed

bower.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,10 @@
4747
"datatables.net": "^1.10.12",
4848
"datatables.net-select": "~1.2.0",
4949
"lodash": "4.x",
50-
"patternfly": "~4.0.0-rc.1"
50+
"patternfly": "3.25.0"
5151
},
5252
"devDependencies": {
5353
"angular-mocks": "1.5.*",
5454
"angular-ui-router": "^1.0.0-beta.3"
55-
},
56-
"resolutions": {
57-
"jquery": "~2.1.4"
5855
}
5956
}

misc/angular-bootstrap-prettify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location',
254254
}
255255
});
256256

257-
element.bind('$destroy', function() {
257+
element.on('$destroy', function() {
258258
deregisterEmbedRootScope();
259259
embedRootScope.$destroy();
260260
});

npm-shrinkwrap.json

Lines changed: 0 additions & 243 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"version": "4.0.0-rc.1",
55
"license": "Apache-2.0",
66
"description": "Angular extension of the PatternFly project.",
7-
"keywords": ["angular", "patternfly"],
7+
"keywords": [
8+
"angular",
9+
"patternfly"
10+
],
811
"main": "index.js",
912
"homepage": "https://github.com/patternfly/angular-patternfly",
1013
"dependencies": {
@@ -14,7 +17,7 @@
1417
"angular-ui-bootstrap": "2.3.x",
1518
"angular-svg-base-fix": "2.0.0",
1619
"lodash-amd": "4.x",
17-
"patternfly": "~4.0.0-rc.1"
20+
"patternfly": "3.25.0"
1821
},
1922
"devDependencies": {
2023
"angular-dragdrop": "1.0.13",
@@ -59,7 +62,7 @@
5962
"d3": "~3.5.17",
6063
"datatables.net": "^1.10.11",
6164
"datatables.net-select": "~1.2.0",
62-
"jquery": "~2.1.4",
65+
"jquery": "~3.2.1",
6366
"moment": "~2.14.1"
6467
},
6568
"scripts": {

src/charts/heatmap/heatmap.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ angular.module('patternfly.charts').component('pfHeatmap', {
362362
ctrl.showLegend = ctrl.showLegend || (ctrl.showLegend === undefined);
363363
ctrl.loadingDone = false;
364364

365-
angular.element($window).bind('resize', function () {
365+
angular.element($window).on('resize', function () {
366366
setSizes();
367367
redraw();
368368
});

src/form/remaining-chars-count/remaining-chars-count.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ angular.module('patternfly.form').directive('pfRemainingCharsCount', function ($
4040
checkCharactersRemaining();
4141
});
4242

43-
$element.bind('keypress', function (event) {
43+
$element.on('keypress', function (event) {
4444
// Once the charsMaxLimit has been met or exceeded, prevent all keypresses from working
4545
if (blockInputAtMaxLimit && $element.val().length >= charsMaxLimit) {
4646
// Except backspace

src/navigation/vertical-navigation.component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ angular.module('patternfly.navigation').component('pfVerticalNavigation', {
550550
checkNavState();
551551

552552
// Need to bind to resize event
553-
angular.element($window).bind('resize', function () {
553+
angular.element($window).on('resize', function () {
554554
checkNavState();
555555
});
556556
};
@@ -562,4 +562,3 @@ angular.module('patternfly.navigation').component('pfVerticalNavigation', {
562562
};
563563
},
564564
});
565-

src/utils/fixed-accordion.directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ angular.module('patternfly.utils').directive('pfFixedAccordion', function ($wind
160160
}, 100);
161161

162162
// Update on window resizing
163-
$element.bind('resize', function () {
163+
$element.on('resize', function () {
164164
setCollapseHeights();
165165
});
166-
angular.element($window).bind('resize', function () {
166+
angular.element($window).on('resize', function () {
167167
setCollapseHeights();
168168
});
169169
}

test/card/aggregate-status/aggregate-status-card.component.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Component: pfAggregateStatusCard', function() {
3131
expect(angular.element(element).find('.card-pf-aggregate-status-count').html()).toBe("793");
3232

3333
//Make sure a link renders in the title
34-
expect(angular.element(element).find('.card-pf-title').find('a').size()).toBe(1);
34+
expect(angular.element(element).find('.card-pf-title').find('a').length).toBe(1);
3535

3636
//Make sure the class is getting set for the title icon
3737
expect(angular.element(element).find('.card-pf-title').find('.fa').hasClass('fa-shield')).toBeTruthy();
@@ -53,7 +53,7 @@ describe('Component: pfAggregateStatusCard', function() {
5353
element = compileCard('<pf-aggregate-status-card status="status"></pf-aggregate-status-card>', $scope);
5454

5555
//Make sure a link renders in the title
56-
expect(angular.element(element).find('.card-pf-title').find('a').size()).toBe(0);
56+
expect(angular.element(element).find('.card-pf-title').find('a').length).toBe(0);
5757
});
5858

5959
it("should set the notifications", function() {
@@ -81,13 +81,13 @@ describe('Component: pfAggregateStatusCard', function() {
8181
notifications = angular.element(element).find('.card-pf-aggregate-status-notification');
8282

8383
//Make sure two notifications render
84-
expect(notifications.size()).toBe(2);
84+
expect(notifications.length).toBe(2);
8585

8686
//First notification should have a link
87-
expect(notifications.eq(0).find('a').size()).toBe(1);
87+
expect(notifications.eq(0).find('a').length).toBe(1);
8888

8989
//Second notification should not have a link
90-
expect(notifications.eq(1).find('a').size()).toBe(0);
90+
expect(notifications.eq(1).find('a').length).toBe(0);
9191

9292
//first notification should have the following class
9393
expect(notifications.eq(0).find('span')).toHaveClass('pficon pficon-error-circle-o');
@@ -135,7 +135,7 @@ describe('Component: pfAggregateStatusCard', function() {
135135

136136
// should show the main icon
137137
cardClass = angular.element(element).find('.fa-shield');
138-
expect(cardClass.size()).toBe(1);
138+
expect(cardClass.length).toBe(1);
139139

140140
notifications = angular.element(element).find('.card-pf-aggregate-status-notification');
141141

@@ -166,7 +166,7 @@ describe('Component: pfAggregateStatusCard', function() {
166166

167167
// should not show the main icon
168168
cardClass = angular.element(element).find('.fa-shield');
169-
expect(cardClass.size()).toBe(0);
169+
expect(cardClass.length).toBe(0);
170170

171171
notifications = angular.element(element).find('.card-pf-aggregate-status-notification');
172172

0 commit comments

Comments
 (0)