What better present can you get for Christmas than a new release of the imgAreaSelect jQuery plugin?
Uh, ok, I guess you could point out a few examples. Especially that it’s a minor release with no new features, just one fix (canceling the selection now triggers the onSelectChange and onSelectEnd callback functions). But, that’s what you’re going to get from me this year, so enjoy it.
Oh, and…
Merry Christmas Everyone!
I know you can cancel an instance of imageareaselect by clicking on the modal area around the selection, but is there a way I can kill an instance from another javascript function? Something like $(“img”).imageareaselect(‘destroy’);?
Say I have 3 images under tabs and only one can be seen at a time based on which tab is selected. By clicking a link under each image, an imageareaselect instance is called on the given image. If I change tabs to another image, I want the script controlling the tabs to automatically cancell the other imageareaselect instance.
Can this be done?
@jb: Try calling the plugin again with the
disableandhideoptions set totrue:$('img').imgAreaSelect({ disable: true, hide: true });
Thanks, that worked.
As long as I make sure both of those are explicitly set as false if I try to initiate the same instance again, everything works fine.
Thanks a lot for this plugin. It’s really one of the more useful jquery plugins I’ve come across.