codeforamerica / bizfriendly-web

An experiment in digital literacy lessons. The experiment is now over.
http://bizfriend.ly
22 stars 67 forks source link

Back button in Learn Lessons should be disabled #204

Open pshegde opened 9 years ago

pshegde commented 9 years ago

backenabled The back button in learn -> Basic Web skills ->Google maps. Select a lesson. On the first page the back button should be disabled.

ondrae commented 9 years ago

Thats a good idea.

In js/instructions.js we'd do something like:

function _showStep(){
    ...
   if (currentStep.stepNumber == 1){
      $('#back').attr("disabled", "disabled");
   } else {
      $('#back').removeAttr("disabled", "disabled");
    }
   ...