{I" class:ETI"BundledAsset;FI"logical_path;TI"extface/application.js;TI" pathname;TI"O/home/alex/workspace/extface/app/assets/javascripts/extface/application.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+MÖSI" length;TiÞI" digest;TI"%623778c29b126b3e756fcc653b1a5c4e;FI" source;TI"Þ// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function() { $('#push').click(function(e) { $.ajax({ type: "POST", url: $(this).attr('href'), data: $('#data').val(), contentType: "application/octet-stream" }); e.preventDefault(); }); }); window.extface_fiscal_jobs = []; document.extface_fiscal_monitor = function(url) { if (!!window.EventSource) { var source = new EventSource(url); var modal = $('#extface_fiscal_monitor'); var message = $('#extface_fiscal_message'); source.onmessage = function(e) { message.html(e.data); }; source.onopen = function(e) { window.extface_fiscal_jobs.push(url); modal.modal('show'); }; source.onerror = function(e) { window.extface_fiscal_jobs.splice( $.inArray(url, window.extface_jobs), 1 ); source.close(); if (window.extface_fiscal_jobs.length == 0) setTimeout(function(){modal.modal('hide');},1000); }; } }; document.open_sse = function(url) { if (!!window.EventSource) { var source = new EventSource(url); source.onmessage = function(e) { console.log(e.data); }; source.onopen = function(e) { console.log('connection opened'); }; source.onerror = function(e) { source.close(); }; } }; // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details // about supported directives. // ; ;TI"required_assets_digest;TI"%5161e57033bd889dcd16f2e02df59841;FI" _version;TI"%1d4ceeee8fc386afc9292795d0cf77f8;F