Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Slider deactivates external javascript on moving to next slide

$
0
0

I'm using a small jQuery library (Succinct.js) to truncate text in a slider. It works perfectly when the first slide loads; after clicking the pagination links, the script is discarded and never loads again.

It occurs both on manual pagination and automatic pagination.

I've read through this thread, but I can't figure out how to fix this: http://wp-types.com/forums/topic/slider-desactivating-slides-javascript

For the record, here's my simple little script. It's not being loaded in the Views js editor, but in a separate file that loads in the <head> section.

jQuery(function($) {
        $('#truncate-desc').succinct({
            size: 240
        });
    });

The server is a dev server, so I don't want to publicly post the URL, but I'll send it in a private message upon request.


Viewing all articles
Browse latest Browse all 20145

Trending Articles