From e64bc01f3450d4a2a94e86a4b0dc6f9e9f4eae2f Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 30 Jan 2019 11:46:00 +0100 Subject: [PATCH] UX changes --- Site/Pages/v5/Financial/ValidateReceipts.aspx | 47 +------------------ 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/Site/Pages/v5/Financial/ValidateReceipts.aspx b/Site/Pages/v5/Financial/ValidateReceipts.aspx index 4ed002e5..f893128b 100644 --- a/Site/Pages/v5/Financial/ValidateReceipts.aspx +++ b/Site/Pages/v5/Financial/ValidateReceipts.aspx @@ -35,36 +35,6 @@ $('#TableAttestableCosts').datagrid( { onLoadSuccess: function () { - $(".LocalIconApproval").attr("src", "/Images/Icons/iconshock-balloon-yes-128x96px.png"); - $(".LocalIconApproved").attr("src", "/Images/Icons/iconshock-green-tick-128x96px.png"); - $(".LocalIconApproved, .LocalIconDenied").css("display", "none"); - $(".LocalIconDenial").attr("src", "/Images/Icons/iconshock-balloon-no-128x96px.png"); - $(".LocalIconApproval, .LocalIconApproved, .LocalIconDenial").css("cursor", "pointer"); - - $(".LocalIconApproval").mouseover(function () { - if ($(this).attr("rel") != "loading") { - $(this).attr("src", "/Images/Icons/iconshock-balloon-yes-128x96px-hot.png"); - } - }); - - $(".LocalIconApproval").mouseout(function () { - if ($(this).attr("rel") != "loading") { - $(this).attr("src", "/Images/Icons/iconshock-balloon-yes-128x96px.png"); - } - }); - - $(".LocalIconApproved").mouseover(function () { - if ($(this).attr("rel") != "loading") { - $(this).attr("src", "/Images/Icons/iconshock-balloon-undo-128x96px.png"); - } - }); - - $(".LocalIconApproved").mouseout(function () { - if ($(this).attr("rel") != "loading") { - $(this).attr("src", "/Images/Icons/iconshock-green-tick-128x96px.png"); - } - }); - $(".LocalIconApproval").click(function () { if ($(this).attr("rel") != "loading") { $(this).attr("rel", "loading"); @@ -88,7 +58,7 @@ } }); - $(".LocalIconApproved").click(function () { + $(".LocalIconUndo").click(function () { if ($(this).attr("rel") != "loading") { $(this).attr("rel", "loading"); $(this).attr("src", "/Images/Abstract/ajaxloader-48x36px.gif"); @@ -114,21 +84,6 @@ }); - - - $(".LocalIconDenial").mouseover(function () { - if ($(this).attr("rel") != "loading") { - $(this).attr("src", "/Images/Icons/iconshock-balloon-no-128x96px-hot.png"); - } - }); - - $(".LocalIconDenial").mouseout(function () { - if ($(this).attr("rel") != "loading") { - $(this).attr("src", "/Images/Icons/iconshock-balloon-no-128x96px.png"); - } - }); - - $(".LocalIconDenial").click(function () { alert('Denying validation is not yet implemented, but you can just leave the unwanted cost here until it is.'); });