cmoreira

split action map

Aug 27th, 2014
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. var entry = value.split('|');
  2. if(entry[0]=='url'){
  3. document.location = entry[1];
  4. }
  5. else{
  6. jQuery.fancybox(
  7. {
  8. type: 'image',
  9. href: entry[1]
  10. });
  11. }
Advertisement
Add Comment
Please, Sign In to add comment