Syncing UX 5

This commit is contained in:
Rick Falkvinge
2019-01-30 18:51:40 +01:00
parent 496077b56e
commit d772d9b0c6
2 changed files with 8 additions and 7 deletions
@@ -42,7 +42,7 @@ public partial class Pages_v5_Finance_Json_AttestableCosts : DataV5Base
StringBuilder result = new StringBuilder (16384);
string hasDoxString =
"<img src='/Images/Icons/iconshock-search-256px.png' baseid='{5}' class='LocalViewDox action-icon' />";
"<img baseid='{5}' class='LocalViewDox action-icon' />";
result.Append ("{\"rows\":[");
@@ -66,6 +66,7 @@
success: function (msg) {
var baseId = $(thisIcon).attr("baseid");
$('.row' + baseId).addClass("action-list-item-approved");
$("#IconWait" + baseId).hide();
$("#IconDenial" + baseId).hide();
$("#IconApproved" + baseId).fadeTo(200, 0.5); // half opacity is intentional
$("#IconUndo" + baseId).fadeTo(1000, 1); // the longer delay is intentional
@@ -76,8 +77,8 @@
$(".LocalIconUndo").click(function () {
var thisIcon = this;
$("#IconApproved" + $(this).attr("baseid")).fadeTo(1000, 0.01);
$(this).hide();
$("#IconApproved" + $(this).attr("baseid")).fadeTo(1000, 0.01);
$("#IconWait" + $(this).attr("baseid")).show();
$.ajax({
type: "POST",
@@ -87,8 +88,8 @@
dataType: "json",
success: function (msg) {
var baseId = $(thisIcon).attr("baseid");
$(thisIcon).attr("src", "/Images/Icons/iconshock-balloon-undo-128x96px.png");
$('.row' + baseId).removeClass("action-list-item-approved");
$("#IconWait" + baseId).hide();
$("#IconApproved" + baseId).hide();
$("#IconApproval" + baseId).fadeTo(200, 1);
$("#IconDenial" + baseId).fadeTo(200, 1);
@@ -120,11 +121,11 @@
</script>
<style type="text/css">
.datagrid-row-selected,.datagrid-row-over{
background:transparent;
}
<style type="text/css">
/* any extra style goes here */
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
<h2><asp:Label runat="server" ID="LabelAttestCostsHeader" Text="XYZ Costs Awaiting Your Attestation" /></h2>