Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable Fancybox modal windows on a.fancybox links.

  • Loading branch information...
commit a2f64b7deb2e3b46ae18c2d40fc51e92cf59ef07 1 parent e7a09b7
@julen julen authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 html/js/common.js
View
6 html/js/common.js
@@ -131,4 +131,10 @@ $(document).ready(function ($) {
}
});
+ /* Fancybox on links */
+ $(document).on("click", "a.fancybox", function (e) {
+ e.preventDefault();
+ $.fancybox({'href': $(e.target).attr('href'), 'type': 'ajax'});
+ });
+
});
Please sign in to comment.
Something went wrong with that request. Please try again.