Skip to content

Instantly share code, notes, and snippets.

@xmon
Created December 21, 2016 20:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xmon/ee5e036feb325ec59564269b18109159 to your computer and use it in GitHub Desktop.
Save xmon/ee5e036feb325ec59564269b18109159 to your computer and use it in GitHub Desktop.
Custom plugin for sachinchoolur/lightGallery
(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