anchor.diff:          }
       });
   
  -    $('a.academic_milestones_generator').click(function() {
  +    $('a.a_academic_milestones_generator').click(function() {
  +        $('#span_error').hide();
           if($("#ivle_token").length && $("#mapping_module").length) {
  -            var DATE_FORMAT = 'YYYY-MM-DDThh:mm:ss';
  -            var milestones = [];
               var key = $("#ivle_api").val(), token = $("#ivle_token").val(), user = ivle.User(key, token);
               user.init().done(function () {
               });
  
positive.code:       </div>
        </form>
    </div>
  <% end %>
  
  <% if @ivle_token %>
  
negative.code:               <li id="lesson-plan-open-milestone-generator" data-toggle="modal" data-target="#lesson-plan-multi-milestone" >
                  <a href="#">Generate Milestones</a>
                </li>
                <li id="academic_milestones_generator" data-toggle="modal" data-target="#generate-nus-academic-calendar"  >
                  <a class="a_academic_milestones_generator" href="#">Generate NUS Academic Milestones</a>
                </li>
              </ul>
            </div>
  