Skip to content
This repository was archived by the owner on Apr 15, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions nivo-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
onPrev: function(element){},
beforeNext: function(element){},
onNext: function(element){},
errorMessage: 'The requested content cannot be loaded. Please try again later.'
errorMessage: 'The requested content cannot be loaded. Please try again later.',
buttonPrev: 'Previous',
buttonNext: 'Next',
buttonClose: 'Close'
};

function NivoLightbox(element, options){
Expand Down Expand Up @@ -325,8 +328,8 @@
var overlay = $('<div>', { 'class': 'nivo-lightbox-overlay nivo-lightbox-theme-'+ this.options.theme +' nivo-lightbox-effect-'+ this.options.effect });
var wrap = $('<div>', { 'class': 'nivo-lightbox-wrap' });
var content = $('<div>', { 'class': 'nivo-lightbox-content' });
var nav = $('<a href="#" class="nivo-lightbox-nav nivo-lightbox-prev">Previous</a><a href="#" class="nivo-lightbox-nav nivo-lightbox-next">Next</a>');
var close = $('<a href="#" class="nivo-lightbox-close" title="Close">Close</a>');
var nav = $('<a href="#" class="nivo-lightbox-nav nivo-lightbox-prev" title="'+ this.options.buttonPrev +'">'+ this.options.buttonPrev +'</a><a href="#" class="nivo-lightbox-nav nivo-lightbox-next" title="'+ this.options.buttonNext +'">'+ this.options.buttonNext +'</a>');
var close = $('<a href="#" class="nivo-lightbox-close" title="'+ this.options.buttonClose +'">'+ this.options.buttonClose +'</a>');
var title = $('<div>', { 'class': 'nivo-lightbox-title-wrap' });

var isMSIE = /*@cc_on!@*/0;
Expand Down