v1.1.1.0
This commit is contained in:
@@ -89,6 +89,7 @@
|
||||
let $frm = sax.$frm.organisation;
|
||||
$('.OrganisationSportId', $frm).val(rgn.id);
|
||||
$('.OrganisationSportCaption', $frm).val(rgn.name);
|
||||
sax.clearControlError($('.OrganisationSportCaption', $frm));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
@@ -115,15 +116,16 @@
|
||||
{
|
||||
//sax.debug('onRegionSelected', rgn);
|
||||
let $frm = sax.$frm.organisation;
|
||||
$('.OrganisationRegionId', $frm).val(rgn.id);
|
||||
$('.OrganisationRegionCaption', $frm).val(rgn.name);
|
||||
$('.OrganisationRegionIdCountry', $frm).val(rgn.id);
|
||||
$('.OrganisationRegionCaptionCountry', $frm).val(rgn.name);
|
||||
sax.clearControlError($('.OrganisationRegionCaptionCountry', $frm));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
sax.createItem = function ()
|
||||
{
|
||||
let $frm = sax.$frm.organisation;
|
||||
$('.OrganisationId,.OrganisationSportId,.OrganisationRegionId,input[type="text"],textarea,select', $frm).val('');
|
||||
$('.OrganisationId,.OrganisationSportId,.OrganisationRegionIdCountry,input[type="text"],textarea,select', $frm).val('');
|
||||
$('.OrganisationStatus', $frm).val(sax.data.defaultStatusCode);
|
||||
sax.clearControlErrors();
|
||||
sax.$dlg.organisation.dialog('option', 'title', sax.dlg.title.createOrganisation);
|
||||
@@ -154,8 +156,8 @@
|
||||
$('.OrganisationCategory', $frm).val(item.categoryCode);
|
||||
$('.OrganisationSportId', $frm).val(item.sportId);
|
||||
$('.OrganisationSportCaption', $frm).val(item.sportName);
|
||||
$('.OrganisationRegionId', $frm).val(item.regionId);
|
||||
$('.OrganisationRegionCaption', $frm).val(item.regionName);
|
||||
$('.OrganisationRegionIdCountry', $frm).val(item.regionIdCountry);
|
||||
$('.OrganisationRegionCaptionCountry', $frm).val(item.regionNameCountry);
|
||||
$('.OrganisationStatus', $frm).val(item.statusCode);
|
||||
sax.clearControlErrors();
|
||||
sax.$dlg.organisation.dialog('option', 'title', sax.dlg.title.updateOrganisation);
|
||||
@@ -206,6 +208,7 @@
|
||||
$('.sax-panel-filter .sax-action.sax-item-create').on('click', function () { sax.createItem(); });
|
||||
$('.sax-panel-filter .sax-action.sax-results-refresh').on('click', function () { sax.refreshResults(); });
|
||||
$('.sax-input').on('input', function () { sax.clearControlError(this); });
|
||||
$('.sax-select').on('change', function () { sax.clearControlError(this); });
|
||||
|
||||
sax.$frm.filter = $('#frmOrganisationFilter');
|
||||
$('.FilterOrganisation', sax.$frm.filter).on('input', function () { sax.refreshResults(250); });
|
||||
|
||||
Reference in New Issue
Block a user