v1.2.11.1
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Saxonite.Net.Core.Web.Admin.Controllers
|
||||
responseData.SetControlError(nameof(model.ContactValue), Localiser["msg.validation.mandatory.value"]);
|
||||
|
||||
// Method specific value validation.
|
||||
if (!SaxContactMethodHelper.IsValidContactMethodValue(method, model.ContactValue))
|
||||
if (!model.ContactValue.IsEmpty() && !SaxContactMethodHelper.IsValidContactMethodValue(method, model.ContactValue))
|
||||
{
|
||||
// Log invalid values so that the validation can be adjusted if needed.
|
||||
SaLogger.Warn(fn + " Invalid contact method value. Mathod: " + method.ToString() + ". Value: " + model.ContactValue);
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
<div class="sax-content">
|
||||
<div class="row">
|
||||
<div class="fixed">
|
||||
<img alt="" title="" class="OrganisationLogo" style="display:none;max-width:@(Sax.Config.Organisation.Logo.DisplayWidthMax_List + "px");max-height:@(Sax.Config.Organisation.Logo.DisplayHeightMax_List + "px");margin-right:8px;border:1px solid #c0c0c0;border-radius:2px;" />
|
||||
<div style="min-width:48px;"><img alt="" title="" class="OrganisationLogo" style="display:none;max-width:@(Sax.Config.Organisation.Logo.DisplayWidthMax_List + "px");max-height:@(Sax.Config.Organisation.Logo.DisplayHeightMax_List + "px");margin-right:8px;border:1px solid #c0c0c0;border-radius:2px;" /></div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
|
||||
@@ -97,13 +97,13 @@
|
||||
.sax-panel-filter .sax-header .sax-results-paging .sax-action
|
||||
{
|
||||
margin: 2px 1px 0 1px;
|
||||
background-color: #b0b0b0;
|
||||
background-color: #c0c0c0;
|
||||
box-shadow: 0 0 0 1px #40404080 inset;
|
||||
}
|
||||
|
||||
.sax-panel-filter .sax-header .sax-results-paging .sax-action:hover
|
||||
{
|
||||
background-color: #c0c0c0;
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
||||
/* Panel header - Burger */
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
opt.buttons[sax.dlg.btn.ok] = function () { cm.fn.applyChanges(); };
|
||||
opt.buttons[sax.dlg.btn.cancel] = function () { $(this).dialog('close'); };
|
||||
$dlg.conMth = $('#dlgContactMethod').dialog(opt);
|
||||
cm.$mth = $('.sax-select.ContactMethod', $dlg.conMth);
|
||||
cm.$val = $('.sax-input.ContactValue', $dlg.conMth);
|
||||
cm.$mth = $('.sax-select.ContactMethod', $dlg.conMth).on('change', function () { sax.clearControlError(this); });
|
||||
cm.$val = $('.sax-input.ContactValue', $dlg.conMth).on('input', function () { sax.clearControlError(this); });
|
||||
});
|
||||
|
||||
//--------------------------------------------------------------
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
//--------------------------------------------------------------
|
||||
oa.removeItem = function (item, $item)
|
||||
{
|
||||
sax.debug('removeItem')
|
||||
//sax.debug('removeItem')
|
||||
oa.clearItem();
|
||||
let frm = $frm.assoc;
|
||||
$('.ItemAssociationId', frm).val(item.id);
|
||||
@@ -219,7 +219,7 @@
|
||||
}
|
||||
oa.onRemoveItem = function (response)
|
||||
{
|
||||
sax.debug('', response)
|
||||
//sax.debug('', response)
|
||||
if (!response.success) return;
|
||||
oa.refreshResults();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user