{:uriI"Áfile:///Users/jpd800/Rails/dfm_web/app/assets/javascripts/dfm_web/dfm_web.js.coffee?type=application/javascript&pipeline=self&id=d51e1e4d270ef652facf2bc35e4fc43f28a33dd3bbc4a69eb5375204a4c6be67:ET:load_pathI"7/Users/jpd800/Rails/dfm_web/app/assets/javascripts;T: filenameI"Q/Users/jpd800/Rails/dfm_web/app/assets/javascripts/dfm_web/dfm_web.js.coffee;T: nameI"dfm_web/dfm_web;T:logical_pathI"dfm_web/dfm_web.self.js;T:content_typeI"application/javascript;T: sourceI" (function() { var filter_table_rows; window.DfmWeb = {}; filter_table_rows = function(searched) { return $('.live_table > tbody > tr').show().filter(function() { var text; text = $(this).text(); return !~text.indexOf(searched); }).hide(); }; DfmWeb.activate_dfm_web = function() { $('.tablesorter').tablesorter({ widgets: ['zebra'] }); $('#notice, #alert').click(function() { $(this).stop(true); return $(this).slideUp('slow'); }); $(document).keyup(function(e) { if (e.keyCode === 27) { $('#notice, #alert').stop(true); return $('#notice, #alert').slideUp('slow'); } }); $(".ajax_load").each(function() { var data_path, data_target; data_target = $(this); data_path = data_target.data('path'); return $.get(data_path, function(response, status, xhr) { if (status === 'success' && response.length < 2048) { return data_target.html(response); } else { console.log("failed to load " + data_path); return false; } }); }); 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 > 1) { $('ul.right').after('
'); $('ul.right').addClass('has_hamburger'); } $('nav #hamburger').click(function() { return $("nav #nav ul.has_hamburger").toggle(); }); window.onresize = function() { console.log($("nav #nav ul.left").offsetWidth()); if (window.innerWidth > 1023) { return $("nav #nav ul.has_hamburger").css('display', 'inline-block'); } else { return $("nav #nav ul.has_hamburger").css('display', 'none'); } }; $('main').click(function() { if (window.innerWidth <= 1023) { return $("nav #nav ul.has_hamburger").css('display', 'none'); } }); return $("#nav > ul > li > ul").each(function() { if ($(this).children('li').length > 10) { return $(this).addClass('crowded'); } }); }; }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"_file-digest:///Users/jpd800/Rails/dfm_web/app/assets/javascripts/dfm_web/dfm_web.js.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%wN]ðîAw\zÜÈ>2·–S¤Áìü ß= ×v磾: lengthi :dependencies_digest"%h¿òÌêQ«€‚¢sÜm-uØêû ~ÅfíQ¤vói:idI"Ed51e1e4d270ef652facf2bc35e4fc43f28a33dd3bbc4a69eb5375204a4c6be67;F: mtimel+?(ÞZ