NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name ecodweb.comarch.ru colorize and print
// @author Alexander Solovyov a.a.solovyov@gmail.com
// @description ecodweb colorize not printed Input and autoprint from print preview HELPDESK-322281 HELPDESK-322456
// @version 1.4
// @license MIT
// @include https://ecodweb.comarch.ru/*
// @require https://ecodweb.comarch.ru/App/JS/jquery-1.2.6.min.js
// @run-at document-end
// @grant none
// ==/UserScript==
function colorize() {
if (location.pathname.substring(1) === 'App/Pages/Inbox.aspx') {
$.each($('.rgMasterTable tr td img'), function(tg) {
if ($(this).attr('src') === '../App_themes/EcodTheme/Icons/Ecod2/ecod2_stat_printed_in.png') {
$(this).closest('tr').attr('style', "background-color: #FB6A74 !important");
}
});
$(':button,:checkbox').click(function() {
setTimeout(colorize, 1500)
});
};
};
$(function() {
setTimeout(function() {
if (location.pathname.substring(1) === 'App/Pages/Print.aspx') {
window.print()
};
colorize();
}, 1500);
});