Sha256: 54893ba0a0fec33837224731de0fb6c6667e60624341af21f12ac09a8cfb6db4

Contents?: true

Size: 1.94 KB

Versions: 4

Compression:

Stored size: 1.94 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1355857733.300452:@value"Z{I"
class:EFI"BundledAsset;FI"logical_path;FI"$woople-theme/assessment_form.js;TI"
pathname;FI"l/Users/adamdoeler/Sites/bigbang/woople-theme/app/assets/javascripts/woople-theme/assessment_form.js.erb;TI"content_type;FI"application/javascript;FI"
mtime;FI"2012-10-31T12:07:57-04:00;FI"length;Fi^I"digest;F"%2180d046471e42446a59003a8411a0f8I"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"%98b6b359fe90cc60438d76963e39dc8fI"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
woople-theme-0.10.0 spec/dummy/tmp/cache/assets/CDE/300/sprockets%2F41d3605492df7609a9b30f90af31f07f
woople-theme-0.9.0 spec/dummy/tmp/cache/assets/CDE/300/sprockets%2F41d3605492df7609a9b30f90af31f07f
woople-theme-0.8.19 spec/dummy/tmp/cache/assets/CDE/300/sprockets%2F41d3605492df7609a9b30f90af31f07f
woople-theme-0.8.18 spec/dummy/tmp/cache/assets/CDE/300/sprockets%2F41d3605492df7609a9b30f90af31f07f