Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix ie pagination bug

  • Loading branch information...
commit 745af2bff4d6ba5e4ff469596b0d9152aa1675ee 1 parent eda002b
Nic Aitch authored
Showing with 7 additions and 2 deletions.
  1. +4 −1 scss/superslides.scss
  2. +3 −1 src/superslides.js
5 scss/superslides.scss
View
@@ -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;
}
4 src/superslides.js
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.