VinceG / twitter-bootstrap-wizard

This twitter bootstrap plugin builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
MIT License
1.39k stars 676 forks source link

Wizard With Disabled Tab Click #100

Closed nikolas27 closed 10 years ago

nikolas27 commented 10 years ago

Hi and congrandulations for your work. what i need to do, is to hide the javascript alert box when a tab is clicked. so when a tab is clicked it will just do nothing..

how can i do this? thanks in advance

VinceG commented 10 years ago

@nikolas27 just remove the alert?

nikolas27 commented 10 years ago

Hi, yes!

nikolas27 commented 10 years ago

sorry i am not sure i explained correctly because my english is not so good. when i click on the tabs, i get a javascript alert. i tried to remove the alert but then it is not working so i wonder if there is another way on having the "disabled tab click" simply with no javascript alert.

Thanks in advance

kkleidal commented 10 years ago

@nikolas27 : It is probably a problem with your code, not the twitter bootstrap library. If you search in jquery.bootstrap.wizard.js for 'alert', you will not find any matches. It would be bad practice for a library to trigger an alert. You probably have an callback function in your code which is triggering the alert.

nikolas27 commented 10 years ago

thank you very much for your response. but how do i hide/remove the alert completely without breaking anything (in my case, Tabs were not working correcly when i removed the alert)

VinceG commented 10 years ago

@nikolas27 @kkleidal Can you please post your code? i'm pretty sure he uses the demo which has the alert code in it and the return false; on the callback.

nikolas27 commented 10 years ago

hi guys, thanks very much for your interest, yes i was editing the demo but now you mentioned, i will give a try on a fresh page and i will return if unseccesful. best regards from Greece!