Created
December 21, 2016 20:56
-
-
Save xmon/ee5e036feb325ec59564269b18109159 to your computer and use it in GitHub Desktop.
Custom plugin for sachinchoolur/lightGallery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
var defaults = { | |
editArtGroup: true | |
}; | |
var EditArtGroup = function (element) { | |
// get lightGallery core plugin data | |
this.core = $(element).data('lightGallery'); | |
this.$el = $(element); | |
// extend module defalut settings with lightGallery core settings | |
this.core.s = $.extend({}, defaults, this.core.s); | |
this.init(); | |
return this; | |
}; | |
EditArtGroup.prototype.init = function () { | |
if (this.core.s.editArtGroup) { | |
// here the actions | |
//this.core.$outer.find('.lg-next.lg-icon').removeClass('lg-next').addClass('icon-right-open-big'); | |
} | |
}; | |
EditArtGroup.prototype.destroy = function() { | |
}; | |
$.fn.lightGallery.modules.editartgroup = EditArtGroup; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment