Export to GitHub

flesler-plugins - issue #2

serialScroll: Callback on initialisation


Posted on Jun 10, 2009 by Helpful Horse

Hi again,

It would be great to be able to add a callback for the loading of the plugin.

I'm trying to add support for disabling buttons. It's pretty easy to add a function to onBefore that disables/enables buttons based on the position of the pane. It would be great however to run this or a similar function when the plugin is initialised.

I tried .trigger('goto',[0]) but onBefore isn't actually called unless there is some movement.

Many thanks, Stephen

Comment #1

Posted on Jun 10, 2009 by Swift Giraffe

I removed that check (not to scroll if the position didn't change). You can grab the version from trunk if needed, will release this asap.

Comment #2

Posted on Jun 10, 2009 by Swift Giraffe

(No comment was entered for this change.)

Comment #3

Posted on Jun 10, 2009 by Helpful Horse

Once again, great. I shall try out trunk tomorrow. Many thanks.

Comment #4

Posted on Jun 14, 2009 by Swift Giraffe

Added on 1.2.2. You need to trigger('goto', 0) or w/e the start.

Status: Fixed

Labels:
Type-Enhancement Priority-Medium