Sha256: 33b62519894bdea95cf3ce10dbd25dc18202cddd10257248659de854a37bf6a8

Contents?: true

Size: 755 Bytes

Versions: 38

Compression:

Stored size: 755 Bytes

Contents

last_scroll_top = null;

function show_sub_report (event_obj)
{
  if (!(event_obj.shiftKey || event_obj.ctrlKey || event_obj.metaKey || event_obj.altKey))
  {
    link_item = $ (event_obj.target);
    $ ("#report-display-document").attr ("src", link_item.attr ("href"));
    event_obj.preventDefault ();
  }
}

function resize_list (event_obj)
{
  var max_height = window.innerHeight - 15;
  $ (".coruncopia-report-holder-list-holder").css ("max-height", max_height + "px");
  $ ("#report-display-document").css ("max-height", max_height + "px");
}

$ (document).ready (function ()
    {
      $ (document).on ("click", "a.coruncopia-report-link", {}, show_sub_report);
      $ (window).bind ("resize", {}, resize_list);
      resize_list (null);
    }
);

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
cornucopia-0.2.0 lib/cornucopia/source_files/report.js
cornucopia-0.1.56 lib/cornucopia/source_files/report.js
cornucopia-0.1.55 lib/cornucopia/source_files/report.js
cornucopia-0.1.54 lib/cornucopia/source_files/report.js
cornucopia-0.1.53 lib/cornucopia/source_files/report.js
cornucopia-0.1.52 lib/cornucopia/source_files/report.js
cornucopia-0.1.51 lib/cornucopia/source_files/report.js
cornucopia-0.1.50 lib/cornucopia/source_files/report.js
cornucopia-0.1.49 lib/cornucopia/source_files/report.js
cornucopia-0.1.48 lib/cornucopia/source_files/report.js
cornucopia-0.1.47 lib/cornucopia/source_files/report.js
cornucopia-0.1.46 lib/cornucopia/source_files/report.js
cornucopia-0.1.45 lib/cornucopia/source_files/report.js
cornucopia-0.1.44 lib/cornucopia/source_files/report.js
cornucopia-0.1.43 lib/cornucopia/source_files/report.js
cornucopia-0.1.42 lib/cornucopia/source_files/report.js
cornucopia-0.1.41 lib/cornucopia/source_files/report.js
cornucopia-0.1.40 lib/cornucopia/source_files/report.js
cornucopia-0.1.39 lib/cornucopia/source_files/report.js
cornucopia-0.1.38 lib/cornucopia/source_files/report.js