core.js update #18

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

brgrz commented Jul 5, 2011

updated fileExtension variable to correct the regex to only return the extension when file is in format "foobar.png" (with dot as extension separator)

brgrz added some commits Jul 5, 2011

updated fileExtension variable to correct the regex to only return th…
…e extension when file is in format "foobar.png" (with dot as extension separator)

This is somewhat related. When you do rel="shadowbox;content=image.jpg" it incorrectly selects "iframe" as the player. Not really sure how to do diffs, but you just need to move this:

if (!obj.player)
    obj.player = S.getPlayer(obj.content);

At the end just before the return (So after the if(rel) {...}). What's happening is it's getting the player before the HTML options "trump" the JavaScript options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment