...
|
...
|
@@ -55,16 +55,21 @@ define('plugins/slider', function(require, exports) { |
|
|
that.slideTo($(this).index());
|
|
|
})
|
|
|
|
|
|
if (this.len > this.options.showNum) {
|
|
|
$(that.options.prevBtn).show().on('click.prev', function() {
|
|
|
|
|
|
if (this.len >= this.options.showNum) {
|
|
|
$(that.options.prevBtn).on('click.prev', function() {
|
|
|
that._prev();
|
|
|
});
|
|
|
|
|
|
$(that.options.nextBtn).show().on('click.next', function() {
|
|
|
$(that.options.nextBtn).on('click.next', function() {
|
|
|
that._next();
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (this.len > this.options.showNum) {
|
|
|
$(that.options.prevBtn).show();
|
|
|
$(that.options.nextBtn).show();
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
...
|
...
|
|