hide slide arrows when there are no more slides in that direction
This commit is contained in:
parent
eff27ff6c5
commit
29c6ed6e9b
@ -69,6 +69,12 @@ define([
|
|||||||
$content.find('.slide-container').first().css('margin-left', -(i*100)+'%');
|
$content.find('.slide-container').first().css('margin-left', -(i*100)+'%');
|
||||||
updateFontSize();
|
updateFontSize();
|
||||||
change(Slide.lastIndex, Slide.index);
|
change(Slide.lastIndex, Slide.index);
|
||||||
|
$modal.find('#button_left > span').css({
|
||||||
|
opacity: Slide.index === 0? 0: 1
|
||||||
|
});
|
||||||
|
$modal.find('#button_right > span').css({
|
||||||
|
opacity: Slide.index === (getNumberOfSlides() -1)? 0: 1
|
||||||
|
});
|
||||||
};
|
};
|
||||||
var draw = Slide.draw = function (i) {
|
var draw = Slide.draw = function (i) {
|
||||||
if (typeof(Slide.content) !== 'string') { return; }
|
if (typeof(Slide.content) !== 'string') { return; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user