v1.1.7.1
This commit is contained in:
@@ -16,7 +16,7 @@ body
|
||||
div, button, input, select, textarea, table, tr, td
|
||||
{
|
||||
font-family: inherit;
|
||||
font-size: 1rem;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
:focus, input:focus, textarea:focus, select:focus, button:focus
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
background-color: #f8f8f8;
|
||||
border: solid 1px var(--color-primary);
|
||||
border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
}
|
||||
|
||||
@media (min-width: 576px)
|
||||
@@ -21,6 +19,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Filter */
|
||||
|
||||
.sax-panel-filter > .sax-header
|
||||
{
|
||||
padding: 2px 8px;
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
.sax-panel-filter > .sax-header .sax-caption
|
||||
{
|
||||
margin-top: 4px;
|
||||
margin: 4px 0 2px 0;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -218,8 +218,6 @@
|
||||
background-color: #f8f8f8;
|
||||
border: solid 1px #979797;
|
||||
border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -233,11 +231,51 @@
|
||||
|
||||
.sax-panel-item > .sax-header .sax-caption
|
||||
{
|
||||
margin-top: 4px;
|
||||
margin: 4px 0;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sax-panel-item > .sax-content
|
||||
{
|
||||
margin: 4px 8px;
|
||||
padding: 4px 4px;
|
||||
}
|
||||
|
||||
.sax-panel-item .sax-note
|
||||
{
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Item - Alpha */
|
||||
.sax-alpha .sax-panel-item
|
||||
{
|
||||
background-color: #fff;
|
||||
border-radius: 0;
|
||||
border-radius: 3px;
|
||||
border-bottom-right-radius: 8px;
|
||||
}
|
||||
|
||||
.sax-alpha .sax-panel-item > .sax-header
|
||||
{
|
||||
margin: 0 8px;
|
||||
padding: 4px 0;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.sax-alpha .sax-panel-item > .sax-header .sax-caption
|
||||
{
|
||||
}
|
||||
|
||||
.sax-alpha .sax-panel-item > .sax-content
|
||||
{
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.sax-alpha .sax-panel-item .sax-note
|
||||
{
|
||||
}
|
||||
|
||||
/* Actions */
|
||||
|
||||
.sax-panel-item > .sax-header .sax-action
|
||||
@@ -261,17 +299,6 @@
|
||||
box-shadow: 0 0 4px 2px #c0c0c080;
|
||||
}
|
||||
|
||||
.sax-panel-item > .sax-content
|
||||
{
|
||||
margin: 4px 8px;
|
||||
padding: 4px 4px;
|
||||
}
|
||||
|
||||
.sax-panel-item .sax-note
|
||||
{
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Profile Sports */
|
||||
|
||||
.sax-panel-item.ProfileSport,
|
||||
@@ -288,6 +315,12 @@
|
||||
border-color: var(--color-alt3);
|
||||
}
|
||||
|
||||
.sax-alpha .sax-panel-item.Organisation,
|
||||
.sax-alpha .sax-panel-item.Organisation > .sax-header
|
||||
{
|
||||
border-color: #b0b0b0;
|
||||
}
|
||||
|
||||
/* Members */
|
||||
|
||||
.sax-panel-item.Member,
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
border: solid 2px #606060;
|
||||
border-color: var(--color-primary);
|
||||
border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ html
|
||||
{
|
||||
html
|
||||
{
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -376,6 +376,26 @@ a:focus
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
|
||||
/* Labels, values, notes */
|
||||
|
||||
.ui-dialog .sax-label, .ui-dialog .sax-value
|
||||
{
|
||||
margin-bottom: 6px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.ui-dialog .sax-label
|
||||
{
|
||||
padding-right: 16px;
|
||||
font-weight: bold;
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
.ui-dialog .sax-value
|
||||
{
|
||||
}
|
||||
|
||||
/* Date Picker */
|
||||
.ui-datepicker
|
||||
{
|
||||
|
||||
@@ -307,7 +307,7 @@
|
||||
$('.sax-input', $frm.member).on('input', function () { sax.clearControlError(this); });
|
||||
|
||||
var opt = sax.dlgOpts();
|
||||
opt.buttons[sax.dlg.btn.ok] = function () { sax.storeItem()onUpdateItem; };
|
||||
opt.buttons[sax.dlg.btn.ok] = function () { sax.storeItem(); };
|
||||
opt.buttons[sax.dlg.btn.cancel] = function () { $(this).dialog('close'); };
|
||||
$dlg.member = $('#dlgMember').dialog(opt);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
}
|
||||
so.doRefreshResults = function (response)
|
||||
{
|
||||
sax.debug('doRefreshResults', response);
|
||||
//sax.debug('doRefreshResults', response);
|
||||
delete sax.awaitingRefreshResponse;
|
||||
sax.refreshControlValues(response.controlValues);
|
||||
var $msgs = $('.sax-panel-messages', $pnl.results).hide().empty();
|
||||
@@ -49,7 +49,9 @@
|
||||
if (!item) return;
|
||||
$('.sax-panel-messages', $pnl.results).hide().empty();
|
||||
$('.OrganisationName', $item).text(item.name);
|
||||
$('.OrganisationEmail', $item).text(item.emailAddress);
|
||||
$('.OrganisationCategory', $item).text(item.categoryDesc);
|
||||
$('.OrganisationSport', $item).text(item.sportName);
|
||||
$('.OrganisationLocation', $item).text(item.location);
|
||||
let $bgr = $('.sax-burger', $item);
|
||||
let $mnu = $('ul.sax-dropdown-menu', $bgr).empty();
|
||||
{
|
||||
@@ -91,13 +93,11 @@
|
||||
//--------------------------------------------------------------
|
||||
so.selectFilterSport = function ()
|
||||
{
|
||||
sax.debug('selectFilterSport');
|
||||
let excludeIds = [];
|
||||
sax.mdl.selectSport.fn.selectSport({ caption: sax.dlg.title.selectSport, sportId: $('.FilterSportId', $frm.filter).val(), excludeIds: excludeIds, fnCallback: so.onFilterSportSelected })
|
||||
}
|
||||
so.onFilterSportSelected = function (spt)
|
||||
{
|
||||
sax.debug('onFilterSportSelected', spt)
|
||||
$('.FilterSportId', $frm.filter).val(spt ? spt.id : '');
|
||||
$('.FilterSportCaption', $frm.filter).val(spt ? spt.name : '');
|
||||
so.refreshResults();
|
||||
@@ -111,13 +111,11 @@
|
||||
//--------------------------------------------------------------
|
||||
so.selectFilterRegion = function ()
|
||||
{
|
||||
sax.debug('selectFilterRegion');
|
||||
let excludeIds = [];
|
||||
sax.mdl.selectRegion.fn.selectRegion({ caption: sax.dlg.title.selectRegion, regionId: $('.FilterRegionId', $frm.filter).val(), excludeIds: excludeIds, fnCallback: so.onFilterRegionSelected })
|
||||
}
|
||||
so.onFilterRegionSelected = function (rgn)
|
||||
{
|
||||
sax.debug('onFilterRegionSelected', rgn)
|
||||
$('.FilterRegionId', $frm.filter).val(rgn ? rgn.id : '');
|
||||
$('.FilterRegionCaption', $frm.filter).val(rgn ? rgn.name : '');
|
||||
so.refreshResults();
|
||||
@@ -139,11 +137,16 @@
|
||||
{
|
||||
sax.debug('onViewItem', response);
|
||||
if (!response.success) return;
|
||||
let frm = $frm.org;
|
||||
let dlg = $dlg.org;
|
||||
let item = so.data.organisation = response.organisation;
|
||||
$('.OrganisationName', frm).toggle(!item.awaiting).val(item.name);
|
||||
$('.OrganisationName', dlg).val(item.name);
|
||||
$('.OrganisationCategory', dlg).toggle(!!item.category).find('.sax-value').text(item.category);
|
||||
$('.OrganisationSport', dlg).toggle(!!item.sport).find('.sax-value').text(item.sport);
|
||||
$('.OrganisationLocation', dlg).toggle(!!item.location).find('.sax-value').text(item.location);
|
||||
$('.OrganisationAddress', dlg).toggle(!!item.address).find('.sax-value').html(item.address ? item.address.replace('\n', '<br/>') : '');
|
||||
$('.OrganisationPostalCode', dlg).toggle(!!item.postalCode).find('.sax-value').text(item.postalCode);
|
||||
sax.clearControlErrors();
|
||||
$dlg.org.dialog('option', 'title', sax.dlg.title.organisation);
|
||||
$dlg.org.dialog('option', 'title', item.name || sax.dlg.title.organisation);
|
||||
sax.openDialog($dlg.org, 600, 600);
|
||||
}
|
||||
|
||||
@@ -165,7 +168,6 @@
|
||||
opt.buttons[sax.dlg.btn.cancel] = function () { $(this).dialog('close'); };
|
||||
$dlg.org = $('#dlgOrganisation').dialog(opt);
|
||||
$frm.orgId = $('#frmOrganisationId');
|
||||
$frm.org = $('#frmOrganisation', $dlg.org);
|
||||
|
||||
setTimeout(so.refreshResults, 250);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user