Sha256: bd2ccd7de880e7812a3e6c1ef41a5e8f31a79d94ea942b6735d9a2725c66cab7

Contents?: true

Size: 924 Bytes

Versions: 11

Compression:

Stored size: 924 Bytes

Contents

(function() {
  'use strict';

  window.sc = window.sc || {};

  sc.filterEmotionMoodViz = function (graphParameters) {
    $('label.interval').on('click', function(event) {
      var input;

      input = $(event.currentTarget).find('input[type="radio"]');
      graphParameters.interval = input.val();
      graphParameters.offset = 1;
      sc.offsetInterval(graphParameters);
      sc.drawGraphs();
    });

    $('.offset').on('click', function(event) {
      event.preventDefault();

      if ($(this).attr('id') === 'next' && graphParameters.offset === 1) {
        return null;
      } else if ($(this).attr('id') === 'previous' && graphParameters.offset === maxOffset(activationDate, graphParameters.interval)) {
        return null;
      } else {
        graphParameters.offset += parseInt($(this).data('value'), 10);
        sc.offsetInterval(graphParameters);
        sc.drawGraphs();
      }
    });
  };
})();

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
think_feel_do_engine-3.12.3 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.12.2 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.12.1 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.12.0 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.11.3 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.11.0 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.10.10 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.10.9 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.10.8 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.10.7 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js
think_feel_do_engine-3.10.6 app/assets/javascripts/think_feel_do_engine/feel/emotion_mood_viz.js