Sha256: 27c076f698e46cf089273b6546bc3503a48a1aad2cab48ed3ee1a223bed5927b
Contents?: true
Size: 1023 Bytes
Versions: 1
Compression:
Stored size: 1023 Bytes
Contents
function readFromCookie() { try { var r = $.cookie(cookieName); if (r) { return $.parseJSON(r); } return []; } catch (err) { removeCookie(); return []; } } function removeCookie() { $.removeCookie(cookieName); } var cookieName = `_ForemanSelected${window.location.pathname.replace( /\//, '' )}`; function buildArfModal(element, url) { var url = url + "?" + $.param({arf_report_ids: readFromCookie()}); var title = $(element).attr('data-dialog-title'); $('#confirmation-modal .modal-header h4').text(title); $("#confirmation-modal .modal-body").load(url + " #content", function(response, status, xhr) { $('#submit_multiple').val(''); var b = $("#confirmation-modal .btn-primary"); if ($(response).find('#content form select').length > 0) b.addClass("disabled").attr("disabled", true); else b.removeClass("disabled").attr("disabled", false); $('#confirmation-modal').modal(); }); return false; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_openscap-1.0.2 | app/assets/javascripts/foreman_openscap/arf_reports.js |