assets/js/uploader/bootstrap-image-gallery.js
File bootstrap-image-gallery.js
has 362 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Bootstrap Image Gallery 2.10
* https://github.com/blueimp/Bootstrap-Image-Gallery
*
* Copyright 2011, Sebastian Tschan
Function showImage
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showImage: function (img) {
var modal = this.$element,
transition = $.support.transition && modal.hasClass('fade'),
method = transition ? modal.animate : modal.css,
modalImage = modal.find('.modal-image'),
Function show
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function () {
if (!this.isShown && this.$element.hasClass('modal-gallery')) {
var modal = this.$element,
options = this.options,
windowWidth = $(window).width(),
Function loadImage
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadImage: function () {
var $this = this,
modal = this.$element,
index = this.options.index,
url = this.getUrl(this.$links[index]),
Function initGalleryEvents
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initGalleryEvents: function () {
var $this = this,
modal = this.$element;
modal.find('.modal-image').on('click.modal-gallery', function (e) {
var modalImage = $(this);