From 4874d6ef36a1b84579844fa17d8faacc8dcfd11b Mon Sep 17 00:00:00 2001 From: Philipp Jeske Date: Thu, 13 Mar 2014 09:49:24 +0100 Subject: [PATCH 1/2] Added possibility to customize pagination Buttons --- src/privates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/privates.js b/src/privates.js index 918abfb..c24f0f3 100644 --- a/src/privates.js +++ b/src/privates.js @@ -1017,7 +1017,7 @@ function renderPagination(wizard, options, state) if (options.enablePagination) { var pagination = "<{0} class=\"actions {1}\">", - buttonTemplate = "
  • {1}
  • ", + buttonTemplate = options.paginationButtonTemplate || "
  • {1}
  • ", buttons = ""; if (!options.forceMoveForward) @@ -1260,4 +1260,4 @@ function validateArgument(argumentName, argumentValue) { throwError("The argument '{0}' is null or undefined.", argumentName); } -} \ No newline at end of file +} From 65013f0544a4d058fb82f80a502c136aa28c035c Mon Sep 17 00:00:00 2001 From: Philipp Jeske Date: Tue, 18 Mar 2014 14:19:36 +0100 Subject: [PATCH 2/2] classes from headertag to steptag It's no possible to set own classes on the header-tag for various modifications which will be repeated in the step-tag --- src/privates.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/privates.js b/src/privates.js index c24f0f3..4732ccf 100644 --- a/src/privates.js +++ b/src/privates.js @@ -1094,7 +1094,10 @@ function renderTitle(wizard, options, state, header, index) title: header.html() }), stepItem = $("
  • " + title + "
  • "); + "\" aria-controls=\"" + uniqueBodyId + "\">" + title + ""), + classList= $(header).attr('class') === undefined ? [] : $(header).attr('class'); + + stepItem.addClass(classList); if (!options.enableAllSteps) {