Syncing UX

This commit is contained in:
Rick Falkvinge
2019-01-30 17:27:17 +01:00
parent 1fe6498a6f
commit 1298bc8099
5 changed files with 24 additions and 7 deletions
+2 -2
View File
@@ -1066,7 +1066,7 @@
</data>
<data name="Global_Closed" xml:space="preserve">
<value>Closed</value>
<comment>As in "record closed"</comment>
<comment>As in "record or transaction closed"</comment>
</data>
<data name="Global_EmptySet" xml:space="preserve">
<value>No records</value>
@@ -1082,6 +1082,6 @@
</data>
<data name="Global_Opened" xml:space="preserve">
<value>Opened</value>
<comment>As in "record opened"</comment>
<comment>As in "record or transaction opened"</comment>
</data>
</root>
+4 -4
View File
@@ -53,8 +53,8 @@
$('#TableAttestableCosts').datagrid(
{
rowStyler: function (index, rowData) {
if (rowData.previous != null) {
return { class: "rowPrevious row" + rowData.itemId };
if (rowData.approved != null) {
return { class: "action-list-item-approved row" + rowData.itemId };
}
if (rowData.itemId != null) {
@@ -200,7 +200,7 @@
$("#IconApproved" + baseid).finish().css("opacity", 0.5).css("display", "none");
$("#IconApproval" + baseid).fadeIn(100);
$("#IconDenial" + baseid).fadeIn(100).css("cursor", "pointer");
$('.row' + baseid).animate({ color: "#000" }, 100);
$('.row' + baseid).removeClass("action-list-item-approved");
alertify.log(SwarmopsJS.unescape(msg.d.DisplayMessage));
recheckBudgets(); // will double-check budgets against server
@@ -320,7 +320,7 @@
$("#IconApproved" + baseid).fadeTo(250, 0.5);
$("#IconDenial" + baseid).finish().css("display", "none").css("opacity", 1.0);
$("#IconUndo" + baseid).fadeIn(100);
$('.row' + baseid).animate({ color: "#AAA" }, 400);
$('.row' + baseid).addClass("action-list-item-approved");
alertify.success(SwarmopsJS.unescape(msg.d.DisplayMessage));
recheckBudgets(); // will double-check budgets against server
@@ -69,7 +69,7 @@ public partial class Pages_v5_Finance_Json_AttestableCosts : DataV5Base
{
result.Append("{");
result.AppendFormat(
"\"item\":\"{0}\",\"beneficiary\":\"{1}\",\"description\":\"{2}\",\"budgetName\":\"{3}\",\"previous\":\"yes\",\"amountRequested\":\"{4:N2}\",\"itemId\":\"{5}\"," +
"\"item\":\"{0}\",\"beneficiary\":\"{1}\",\"description\":\"{2}\",\"budgetName\":\"{3}\",\"approved\":\"yes\",\"amountRequested\":\"{4:N2}\",\"itemId\":\"{5}\"," +
"\"dox\":\"" + (item.HasDox ? hasDoxString : "&nbsp;") + "\"," +
"\"actions\":\"<span style=\\\"position:relative;left:-2px\\\">" +
"<img id=\\\"IconApproval{5}\\\" class=\\\"LocalIconApproval LocalFundsInsufficient LocalPreviouslyAttested\\\" accountid=\\\"{6}\\\" amount=\\\"{4}\\\" baseid=\\\"{5}\\\" height=\\\"18\\\" width=\\\"24\\\" />" +
@@ -30,6 +30,18 @@
$(document).ready(function () {
$('#TableAttestableCosts').datagrid(
{
rowStyler: function (index, rowData) {
if (rowData.approved != null) {
return { class: "action-list-item-approved row" + rowData.itemId };
}
if (rowData.itemId != null) {
return { class: "row" + rowData.itemId.replace(/\|/g, '') };
}
return '';
},
onLoadSuccess: function () {
$(".LocalIconApproval").attr('src', '/Images/Icons/iconshock-balloon-yes-128x96px.png');
+5
View File
@@ -1036,6 +1036,11 @@ input.entryError, span.entryError, div.entryError {
background:transparent !important;
}
.action-list-item-approved {
color: #aaa;
transition: all 0.50s;
-webkit-transition: all 0.50s;
}
/* DISPLAY FIELDS */