app/assets/javascripts/directives/openclass.gallery.js
Function factory
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.directive('gallery', function factory(fancybox) {
var directive = {
restrict: 'C',
link: function (scope, element, attrs) {
scope.$watch('attachments', function (attachments) {
Function link
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs) {
scope.$watch('attachments', function (attachments) {
if (attachments) {
fancybox(element.find('a'), {
afterShow: function() {