Skip to content

Commit

Permalink
Added closeButtonTitle and nextButtonTitle for internationalization /…
Browse files Browse the repository at this point in the history
… localization.
  • Loading branch information
Jeff Pickhardt committed Oct 4, 2011
1 parent 27d7a4f commit 654b5ab
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions guiders-1.1.4.js
Expand Up @@ -53,9 +53,11 @@ var guiders = (function($){
].join(""),

_arrowSize: 42, // = arrow's width and height
_guiders: {},
_closeButtonTitle: "Close",
_currentGuiderID: null,
_guiders: {},
_lastCreatedGuiderID: null,
_nextButtonTitle: "Next",
_zIndexForHilight: 101,

_addButtons: function(myGuider) {
Expand All @@ -80,9 +82,11 @@ var guiders = (function($){

if (thisButton.onclick) {
thisButtonElem.bind("click", thisButton.onclick);
} else if (!thisButton.onclick && thisButton.name.toLowerCase() === "close") {
} else if (!thisButton.onclick &&
thisButton.name.toLowerCase() === guiders._closeButtonTitle.toLowerCase()) {
thisButtonElem.bind("click", function() { guiders.hideAll(); });
} else if (!thisButton.onclick && thisButton.name.toLowerCase() === "next") {
} else if (!thisButton.onclick &&
thisButton.name.toLowerCase() === guiders._nextButtonTitle.toLowerCase()) {
thisButtonElem.bind("click", function() { guiders.next(); });
}
}
Expand Down

0 comments on commit 654b5ab

Please sign in to comment.