Skip to content

Commit fa997b8

Browse files
authored
Merge pull request #470 from bleathem/master
Set the patternfly version to 3.25.0
2 parents 141f56f + c1c88cb commit fa997b8

File tree

14 files changed

+53
-224
lines changed

14 files changed

+53
-224
lines changed

bower.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@
4343
"angular-sanitize": "1.3.0 - 1.5.*",
4444
"angular-bootstrap": "0.14.x",
4545
"lodash": "3.x",
46-
"patternfly": "~3.24.0"
46+
"patternfly": "3.25.0",
47+
"jquery": "2"
4748
},
4849
"devDependencies": {
4950
"angular-mocks": "1.3.0 - 1.5.*",
5051
"angular-ui-router": "1.0.0-beta.3"
52+
},
53+
"resolutions": {
54+
"jquery": "2"
5155
}
5256
}

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 & 179 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"version": "3.24.0",
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": {
@@ -13,8 +16,9 @@
1316
"angular-drag-and-drop-lists": "2.0.0",
1417
"angular-sanitize": "1.3.0 - 1.5.*",
1518
"angular-ui-bootstrap": "0.14.x",
19+
"jquery": "^2.2.4",
1620
"lodash": "3.x",
17-
"patternfly": "~3.24.0"
21+
"patternfly": "3.25.0"
1822
},
1923
"devDependencies": {
2024
"express": "3.4.4",

src/charts/heatmap/heatmap.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ angular.module('patternfly.charts').directive('pfHeatmap', function ($compile, $
375375
setStyles();
376376
});
377377

378-
angular.element($window).bind('resize', function () {
378+
angular.element($window).on('resize', function () {
379379
setSizes();
380380
redraw();
381381
});

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

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

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

src/navigation/vertical-navigation-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ angular.module('patternfly.navigation').directive('pfVerticalNavigation', ['$loc
551551
initBodyElement();
552552
checkNavState();
553553

554-
angular.element($window).bind('resize', function () {
554+
angular.element($window).on('resize', function () {
555555
checkNavState();
556556
$timeout(function () {
557557
try {

src/utils/fixed-accordion.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ angular.module('patternfly.utils').directive('pfFixedAccordion', function ($wind
142142
}, 100);
143143

144144
// Update on window resizing
145-
angular.element($window).bind('resize', function () {
145+
angular.element($window).on('resize', function () {
146146
setCollapseHeights();
147147
});
148148
}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Directive: 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('Directive: pfAggregateStatusCard', function() {
5353
element = compileCard('<div pf-aggregate-status-card status="status"></div>', $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('Directive: 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('Directive: 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('Directive: 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)