Sha256: 13f9258bb0fd8ae5e98498fbfaa6f1bef0cde44e8c77f78c02f237951b76e487

Contents?: true

Size: 1.94 KB

Versions: 3

Compression:

Stored size: 1.94 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1348154449.643299:@value"Z{I"
class:EFI"BundledAsset;FI"logical_path;FI"$woople-theme/assessment_form.js;FI"
pathname;FI"l/Users/adamdoeler/Sites/bigbang/woople-theme/app/assets/javascripts/woople-theme/assessment_form.js.erb;FI"content_type;FI"application/javascript;FI"
mtime;FI"2012-07-10T18:05:50-04:00;FI"length;Fi^I"digest;F"%fe27a4609a175b3bdf957c5fc46534d6I"source;FI"^$(document).ready(function() {
  function updateAssessmentFormState() {
    var numberOfQuestions = $('#assessment .legend').length;
    var numberOfCheckedAnswers = $('#assessment input:checked').length;
    var numberOfUnansweredQuestions = numberOfQuestions - numberOfCheckedAnswers;

    var unansweredQuestionsBadge = $('#assessment .badge');
    if (numberOfUnansweredQuestions > 0) {
      if (numberOfUnansweredQuestions == 1) {
        unansweredQuestionsBadgeText = '1 unanswered question';
      } else {
        unansweredQuestionsBadgeText = '%{count} unanswered questions'.replace('%{count}', numberOfUnansweredQuestions);
      }

      unansweredQuestionsBadge.text(unansweredQuestionsBadgeText);
    } else {
      if (phone()) {
        unansweredQuestionsBadge.hide();
      }

      unansweredQuestionsBadge.fadeOut();
      $('#assessment input[type=submit]').removeAttr('disabled');

      $('.touch #assessment .span4').addClass('collapse-height');
    }
  }

  $('#assessment').on('click', 'input[type=radio]', updateAssessmentFormState);

  var cancelButton = $('#assessment input[type=button]');
  cancelButton.click(function() {
    location.href = cancelButton.attr('data-course-path');
  });

  $('.touch #assessment label').click(function() {
    $(this).children('input').attr('checked', 'checked');
    updateAssessmentFormState();
  });
});
;FI"required_assets_digest;F"%936765bb47f8d61f19702ed1b68f1014I"
_version;F"%9f3b95dd7ea3030dc35985c0a8020862

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
woople-theme-0.6.19 spec/dummy/tmp/cache/assets/CDE/300/sprockets%2F41d3605492df7609a9b30f90af31f07f
woople-theme-0.6.18 spec/dummy/tmp/cache/assets/CDE/300/sprockets%2F41d3605492df7609a9b30f90af31f07f
woople-theme-0.6.12 spec/dummy/tmp/cache/assets/CDE/300/sprockets%2F41d3605492df7609a9b30f90af31f07f