Quick fix part 2 (this still needs refactoring)
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
accountId = $("#IconApproval" + recordId).attr('accountid');
|
||||
$('div.radioOption').hide();
|
||||
$('input:radio[name="ModalOptions"]').prop('checked', false);
|
||||
SwarmopsJS.formatCurrency(amountRequested, function (data) { $('#<%=this.TextCorrectAmount.ClientID%>_Input').val(data); });
|
||||
SwarmopsJS.formatCurrency(amountRequested, function (data) { <%=this.TextCorrectAmount.ClientID%>_val(data); });
|
||||
$('<%=this.TextDenyReason.ClientID%>').val(''); // empty reason
|
||||
<%=this.DialogDeny.ClientID%>_open();
|
||||
}
|
||||
@@ -453,7 +453,7 @@
|
||||
|
||||
SwarmopsJS.ajaxCall(
|
||||
"/Pages/v5/Financial/AttestCosts.aspx/AttestCorrectedItem",
|
||||
{ recordId: recordId, amountString: $('#<%=this.TextCorrectAmount.ClientID%>_Input').val() },
|
||||
{ recordId: recordId, amountString: <%=this.TextCorrectAmount.ClientID%>_val() },
|
||||
function(result) {
|
||||
console.log(result);
|
||||
if (!result.Success) {
|
||||
@@ -541,7 +541,7 @@
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
<p><input type="radio" id="RadioCorrect" name="ModalOptions" value="Correct" onclick="$('#<%=this.TextCorrectAmount.ClientID%>_Input').focus().select();" /><label for="RadioCorrect"><asp:Label runat="server" ID="LabelRadioCorrect" Text="I will attest, but for a different amount. XYZ" /></label></p>
|
||||
<p><input type="radio" id="RadioCorrect" name="ModalOptions" value="Correct" onclick="<%=this.TextCorrectAmount.ClientID%>_focus();" /><label for="RadioCorrect"><asp:Label runat="server" ID="LabelRadioCorrect" Text="I will attest, but for a different amount. XYZ" /></label></p>
|
||||
<div id="radioOptionCorrect" class="radioOption">
|
||||
<div class="entryFields">
|
||||
<Swarmops5:CurrencyTextBox ID="TextCorrectAmount" runat="server" />​<br/>
|
||||
|
||||
@@ -66,9 +66,9 @@
|
||||
success: function(msg) {
|
||||
if (msg.d != true) {
|
||||
isValid = false;
|
||||
$('#<%=CurrencyAmount.ClientID %>_Input').addClass("entryError");
|
||||
$('#<%=CurrencyAmount.ClientID %>_TextInput').addClass("entryError");
|
||||
alertify.error(SwarmopsJS.unescape('<%= this.Localized_ValidationError_Amount %>'));
|
||||
$('#<%=CurrencyAmount.ClientID %>_Input').focus();
|
||||
<%=CurrencyAmount.ClientID %>_focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -63,9 +63,9 @@
|
||||
success: function (msg) {
|
||||
if (msg.d != true) {
|
||||
isValid = false;
|
||||
$('#<%=this.CurrencyAmount.ClientID %>_Input').addClass("entryError");
|
||||
$('#<%=this.CurrencyAmount.ClientID %>_TextInput').addClass("entryError");
|
||||
alertify.error(SwarmopsJS.unescape('<%= this.Localized_ValidationError_Amount %>'));
|
||||
$('#<%=this.CurrencyAmount.ClientID %>_Input').focus();
|
||||
<%=this.CurrencyAmount.ClientID %>_focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
if (msg.d != true) {
|
||||
isValid = false;
|
||||
alertify.error(SwarmopsJS.unescape('<%= this.Localized_ValidationError_Amount %>'));
|
||||
$('#<%=this.TextAmount.ClientID %>_Input').addClass("entryError").focus();
|
||||
$('#<%=this.TextAmount.ClientID %>_TextInput').addClass("entryError").focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$('#<%=CurrencyInitialBalance.ClientID%>_Input').blur(function() {
|
||||
$('#<%=CurrencyInitialBalance.ClientID%>_TextInput').blur(function() {
|
||||
var newAccountInitialBalance = $(this).val();
|
||||
|
||||
if (modalAccountInitialBalance == newAccountInitialBalance) {
|
||||
@@ -292,7 +292,7 @@
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-color', '#DDD');
|
||||
$('#TextAccountBudget').val('...').css('background-color', '#DDD');
|
||||
$('#TextAccountName').val('...').css('background-color', '#DDD');
|
||||
$('#<%=CurrencyInitialBalance.ClientID%>_Input').val('...').css('background-color', '#DDD');
|
||||
$('#<%=CurrencyInitialBalance.ClientID%>_TextInput').val('...').css('background-color', '#DDD');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').attr('placeholder', '...');
|
||||
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#FFF');
|
||||
@@ -418,7 +418,7 @@
|
||||
$('#TextAccountBudget').val(msg.d.Budget).css('background-color', '#FFF');
|
||||
|
||||
modalAccountInitialBalance = msg.d.InitialBalance;
|
||||
$('#<%=CurrencyInitialBalance.ClientID%>_Input').val(msg.d.InitialBalance).css('background-color', '#FFF');
|
||||
$('#<%=CurrencyInitialBalance.ClientID%>_TextInput').val(msg.d.InitialBalance).css('background-color', '#FFF');
|
||||
|
||||
$('#SpanTextCurrency').text(msg.d.CurrencyCode);
|
||||
$('#SpanEditBalance').text(msg.d.Balance);
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
}
|
||||
|
||||
function addTransactionRow() {
|
||||
var amountString = $('#<%= TextInsertAmount.ClientID %>_Input').val();
|
||||
var amountString = <%= TextInsertAmount.ClientID %>_val();
|
||||
var rowAccountId = 0;
|
||||
var selectedAccountNode = $('#<%= BudgetAddRow.ClientID %>_DropBudgets').combotree('tree').tree('getSelected');
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
dataType: "json",
|
||||
success: function(msg) {
|
||||
if (msg.d.length > 1) {
|
||||
$('#<%= TextInsertAmount.ClientID %>_Input').val(msg.d);
|
||||
<%= this.TextInsertAmount.ClientID %>_initialize(msg.d);
|
||||
} else {
|
||||
alertify.error("<%= Global.Error_AjaxCallException %>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user