Sha256: 8bd7b5de037b878715e3691e86c354e4ac35629c234e887e9ea5034cd1ea3e9a

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

I"~(function() {
  var filter_table_rows;

  filter_table_rows = function(searched) {
    return $('.live_table > tbody > tr').show().filter(function() {
      var text;
      text = $(this).text();
      return !~text.indexOf(searched);
    }).hide();
  };

  $(document).on('ready page:load', function() {
    if (typeof tablesorter !== "undefined") {
      $('.tablesorter').tablesorter({
        widgets: ['zebra']
      });
    }
    $('#notice, #alert').click(function() {
      return $(this).fadeOut('slow');
    });
    $(document).keyup(function(e) {
      if (e.keyCode === 27) {
        return $('#notice, #alert').fadeOut('slow');
      }
    });
    $(".ajax_load").each(function() {
      return $(this).load($(this).data('path'));
    });
    if (typeof datepicker !== "undefined") {
      $('.datepicker').datepicker({
        dateFormat: "yy-mm-dd"
      });
    }
    filter_table_rows($('#live_search').val());
    $('#live_search').keyup(function() {
      return filter_table_rows($(this).val());
    });
    $(".auto_submit").change(function() {
      if (this.form.hasAttribute("data-remote")) {
        return $(this).submit();
      } else {
        return this.form.submit();
      }
    });
    setTimeout((function() {
      return $('.autofocus').focus();
    }), 0);

    /* NAV BAR */
    if ($('#nav ul.right li').length) {
      $('ul.right').after('<div id="hamburger"></div>');
    }
    $('nav #hamburger').click(function() {
      return $("nav #nav .right").toggle();
    });
    window.onresize = function() {
      if (($(window).width() / parseFloat($("body").css("font-size"))) > 47.938) {
        return $("nav #nav .right").css('display', 'inline-block');
      } else {
        return $("nav #nav .right").css('display', 'none');
      }
    };
    return $('main').click(function() {
      return $("#nav li div:hover").css('display', 'none');
    });
  });

}).call(this);
:ET

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dfm_web-1.0.7 spec/dummy/tmp/cache/assets/sprockets/v3.0/RM/RmvZGcNRHHqYbDH_8E1bqqZOV3Cp8FGrQsDlR7cto1E.cache
dfm_web-1.0.6 spec/dummy/tmp/cache/assets/sprockets/v3.0/RM/RmvZGcNRHHqYbDH_8E1bqqZOV3Cp8FGrQsDlR7cto1E.cache