Testing currency box blur

This commit is contained in:
Rick Falkvinge
2017-09-25 17:53:23 +02:00
parent fd4347299e
commit 103f6f0d0e
2 changed files with 12 additions and 1 deletions
@@ -28,4 +28,11 @@
// <%=this.ClientID%>_enable();
}
$(document).ready(function() {
$('#<%=this.ClientID%>_TextInput').blur(function() {
alert('currency blur');
});
});
</script>
@@ -9,7 +9,7 @@ namespace Swarmops.Frontend.Controls.Financial
/// This is an ordinary textbox, except it does culture-sensitive and
/// asynchronous validation of currency input.
/// </summary>
public partial class CurrencyTextBox : UserControl
public partial class CurrencyTextBox : ControlV5Base
{
protected void Page_Load (object sender, EventArgs e)
{
@@ -19,8 +19,12 @@ namespace Swarmops.Frontend.Controls.Financial
{
this.Layout = LayoutDirection.Vertical;
}
this.DefaultCurrency = this.CurrentAuthority.Organization.Currency;
}
public Logic.Financial.Currency DefaultCurrency { get; set; }
public Int64 Cents
{
get