Skip to content

Commit b0a0e29

Browse files
committed
Corrigido id previous and next
1 parent 2ba4b45 commit b0a0e29

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

dist/paging.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,17 @@ angular.module('bw.paging', []).directive('paging', function () {
9494
'<li ' +
9595
'title="{{Item.title}}" ' +
9696
'data-ng-class="Item.liClass" ' +
97-
'data-ng-repeat="Item in List track by $index"> ' +
98-
'<a ' +
97+
'data-ng-repeat="Item in List track by $index">' +
98+
'<a ' +
9999
(attrs.pgHref ? 'data-ng-href="{{Item.pgHref}}" ' : 'href ') +
100+
'data-ng-attr-id="{{ $first ? \'previous\' : \"\'page\'+$index\" }}"' +
101+
'data-ng-attr-id="{{ $last ? \'next\' : \"\'page\'+$index\" }}"' +
100102
'data-ng-class="Item.aClass" ' +
101103
'data-ng-click="Item.action()" ' +
102-
'data-ng-bind="Item.value"'+
103-
'ng-attr-id="$first || $last ? $index : undefined">'
104+
'data-ng-bind="Item.value">' +
104105
'</a> ' +
105106
'</li>' +
106-
'</ul>'
107+
'</ul>'
107108
}
108109

109110

dist/paging.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/paging.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,17 @@ angular.module('bw.paging', []).directive('paging', function () {
9494
'<li ' +
9595
'title="{{Item.title}}" ' +
9696
'data-ng-class="Item.liClass" ' +
97-
'data-ng-repeat="Item in List track by $index"> ' +
98-
'<a ' +
97+
'data-ng-repeat="Item in List track by $index">' +
98+
'<a ' +
9999
(attrs.pgHref ? 'data-ng-href="{{Item.pgHref}}" ' : 'href ') +
100+
'data-ng-attr-id="{{ $first ? \'previous\' : \"\'page\'+$index\" }}"' +
101+
'data-ng-attr-id="{{ $last ? \'next\' : \"\'page\'+$index\" }}"' +
100102
'data-ng-class="Item.aClass" ' +
101103
'data-ng-click="Item.action()" ' +
102-
'data-ng-bind="Item.value"'+
103-
'ng-attr-id="$first || $last ? $index : undefined">'
104+
'data-ng-bind="Item.value">' +
104105
'</a> ' +
105106
'</li>' +
106-
'</ul>'
107+
'</ul>'
107108
}
108109

109110

0 commit comments

Comments
 (0)