bastion 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmYwYjI1ZmU4ZGQyMjk3MjAwYWI3NzEyZjQyMGM4ODNiNDc3MWUyYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTA0YTNkZjhjYzU0NjE2YmZhYWJiZmNjYTRhZjBmZWFlMTQ1MzM0NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2E2NGYyNTQ0NDVkYTc4NjlmNTI5ZDQyYmFjMDM0Nzc2NzFhOGQxODM4MjE4
|
10
|
+
MGFmMGIyMmYwNzJmYjM2YTNjNGZiMzY2OGFjY2Q1MDhjMWJiOTc5ZjdjYzg0
|
11
|
+
ZDE4MmMyOGNiNjZkYjliMDZkZTMzMjY0ZDk2ZTg0ZDI3ZTZjYWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGE4ZWJhMGZjNDI5YWMzYTU0NzFmOTZiNDVhYWQxMWE0NjBhMTc1Njg0ZWMw
|
14
|
+
Mzc5NGE0NjJjYzY4MDA0Y2Q2MjBmZTRhY2FhZmYyZWVmNDU2MzI2NThiYTJi
|
15
|
+
NTJmYTA1ZTgyNjA2Mzg2OGQ3OTViZWYzMTc0ZmYyZDE5ZTE0YjU=
|
@@ -3,12 +3,14 @@
|
|
3
3
|
* @name Bastion.components.directive:bstTable
|
4
4
|
* @restrict A
|
5
5
|
*
|
6
|
+
* @requires $window
|
7
|
+
*
|
6
8
|
* @description
|
7
9
|
*
|
8
10
|
* @example
|
9
11
|
*/
|
10
12
|
angular.module('Bastion.components')
|
11
|
-
.directive('bstTable', [function () {
|
13
|
+
.directive('bstTable', ['$window', function ($window) {
|
12
14
|
return {
|
13
15
|
restrict: 'A',
|
14
16
|
replace: true,
|
@@ -17,7 +19,22 @@ angular.module('Bastion.components')
|
|
17
19
|
'rowSelect': '@',
|
18
20
|
'rowChoice': '@'
|
19
21
|
},
|
20
|
-
controller: 'BstTableController'
|
22
|
+
controller: 'BstTableController',
|
23
|
+
link: function (scope) {
|
24
|
+
var resize = function () {
|
25
|
+
angular.element($window).trigger('resize');
|
26
|
+
};
|
27
|
+
|
28
|
+
// Trigger resize after resource $promise is resolved
|
29
|
+
scope.$watch('table.resource', function (resource) {
|
30
|
+
if (resource && resource.hasOwnProperty('$promise')) {
|
31
|
+
resource.$promise.then(resize);
|
32
|
+
}
|
33
|
+
});
|
34
|
+
|
35
|
+
// Trigger resize when rows change
|
36
|
+
scope.$watch('table.rows', resize);
|
37
|
+
}
|
21
38
|
};
|
22
39
|
}])
|
23
40
|
.controller('BstTableController', ['$scope', function ($scope) {
|
@@ -52,14 +52,6 @@ angular.module('Bastion.components').directive('nutupaneTable', ['$compile', '$w
|
|
52
52
|
angular.forEach(originalTable.find('th'), function (th, index) {
|
53
53
|
$compile(clonedThs[index])(angular.element(th).scope());
|
54
54
|
});
|
55
|
-
|
56
|
-
originalTable.bind("DOMNodeInserted", function () {
|
57
|
-
windowElement.trigger('resize');
|
58
|
-
});
|
59
|
-
|
60
|
-
originalTable.bind("DOMNodeInsertedIntoDocument", function () {
|
61
|
-
windowElement.trigger('resize');
|
62
|
-
});
|
63
55
|
}
|
64
56
|
|
65
57
|
scope.$on("$stateChangeSuccess", function (event, newState, newParams, oldState) {
|
data/lib/bastion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bastion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katello
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: angular-rails-templates
|