Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions js/iview.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
}

//Play/Pause action
iv.iviewTimer.live('click', function () {
$(document).on('click', iv.iviewTimer, function () {
if (iv.iviewTimer.hasClass('paused')) {
iv.playSlider();
} else {
Expand Down Expand Up @@ -424,14 +424,14 @@
}, 300);
});

$('a.iview-prevNav', iv.sliderContent).live('click', function () {
$(iv.sliderContent).on('click', 'a.iview-prevNav', function () {
if (iv.defs.lock) return false;
iv.cleanTimer();
iv.defs.slide -= 2;
iv.goTo('prev');
});

$('a.iview-nextNav', iv.sliderContent).live('click', function () {
$(iv.sliderContent).on('click', 'a.iview-nextNav', function () {
if (iv.defs.lock) return false;
iv.cleanTimer();
iv.goTo('next');
Expand Down Expand Up @@ -468,20 +468,20 @@
//Set initial active link
$('.iview-controlNav a.iview-control:eq(' + iv.defs.slide + ')', iv.sliderContent).addClass('active');

$('a.iview-controlPrevNav', iv.sliderContent).live('click', function () {
$(iv.sliderContent).on('click', 'a.iview-controlPrevNav', function () {
if (iv.defs.lock) return false;
iv.cleanTimer();
iv.defs.slide -= 2;
iv.goTo('prev');
});

$('a.iview-controlNextNav', iv.sliderContent).live('click', function () {
$(iv.sliderContent).on('click', 'a.iview-controlNextNav', function () {
if (iv.defs.lock) return false;
iv.cleanTimer();
iv.goTo('next');
});

$('.iview-controlNav a.iview-control', iv.sliderContent).live('click', function () {
$(iv.sliderContent).on('click', '.iview-controlNav a.iview-control', function () {
if (iv.defs.lock) return false;
if ($(this).hasClass('active')) return false;
iv.cleanTimer();
Expand Down Expand Up @@ -1744,4 +1744,4 @@
};
});

})(jQuery, this);
})(jQuery, this);