Browse files

Fix ie pagination bug

  • Loading branch information...
1 parent eda002b commit 745af2bff4d6ba5e4ff469596b0d9152aa1675ee @nicinabox committed May 22, 2013
Showing with 7 additions and 2 deletions.
  1. +4 −1 scss/superslides.scss
  2. +3 −1 src/superslides.js
View
5 scss/superslides.scss
@@ -46,8 +46,11 @@
border-radius: 15px;
width: 10px;
height: 10px;
- display: inline-block;
+ @include inline-block;
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP6zwAAAgcBApocMXEAAAAASUVORK5CYII=');
margin: 2px;
+ overflow: hidden;
+ text-indent: -100%;
&.current {
background: #222;
}
View
4 src/superslides.js
@@ -503,8 +503,10 @@
.addClass('current');
},
addItem: function(i) {
+ var index = i + 1;
var $item = $("<a>", {
- 'href': "#" + (i + 1)
+ 'href': "#" + index,
+ 'text': index
});
$item.appendTo(this.$pagination);

0 comments on commit 745af2b

Please sign in to comment.