jquery-bootstrap-modal-steps icon indicating copy to clipboard operation
jquery-bootstrap-modal-steps copied to clipboard

Callback issue

Open suarezph opened this issue 8 years ago • 1 comments

How do I open the step 2 or step 3 ignoring the previous step directly in modal when pressing the button? Can you give me some clue or site. really need it :(

suarezph avatar Mar 26 '16 16:03 suarezph

Hi I have added edited the plugin and added "actualStep" in the "settings" to make the step dynamic.

           `if(settings.actualStep == '1'){
               $btnPrevious.attr('disabled', 'disabled');
            } else{
                $btnPrevious.removeAttr('disabled');
            }`

          `$actualStep = $('<input>').attr({
                'type': 'hidden',
                'id': 'actual-step',
                'value': settings.actualStep,
            });

            $modal.find('#actual-step').remove();
            $modal.append($actualStep);

            actualStep = settings.actualStep;
            nextStep = actualStep + 1;`

suarezph avatar Mar 26 '16 17:03 suarezph