fixes
This commit is contained in:
@@ -21,7 +21,7 @@ $(function() {
|
||||
$control_item.addClass('active');
|
||||
|
||||
window.on_transitionend($control_item_content, function(event) {
|
||||
if (!event || event.target === $control_item_content[0]) {
|
||||
if (!event || event.target === this) {
|
||||
$control_item_content.off(window.transitionend);
|
||||
$control_item_content.removeAttr('style');
|
||||
$control_item.removeClass('loading');
|
||||
@@ -40,7 +40,7 @@ $(function() {
|
||||
$control_item_content.height($control_item_content_main.outerHeight(true));
|
||||
|
||||
window.on_transitionend($control_item_content, function(event) {
|
||||
if (!event || event.target === $control_item_content[0]) {
|
||||
if (!event || event.target === this) {
|
||||
$control_item_content.off(window.transitionend);
|
||||
$control_item_content_main.html('');
|
||||
}
|
||||
|
||||
@@ -35,6 +35,13 @@ $(function() {
|
||||
}
|
||||
});
|
||||
|
||||
$body.on('click', '.slider__next', function(event) {
|
||||
event.preventDefault();
|
||||
var $this = $(this);
|
||||
var $slider = $this.parents('.slider');
|
||||
slider_next_item($slider);
|
||||
});
|
||||
|
||||
window.enable_touch_swipe('.slider', slider_prev_item, slider_next_item);
|
||||
window.enable_touch_swipe('.text_slider', slider_prev_item, slider_next_item);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user