This commit is contained in:
2022-07-16 13:30:57 +01:00
parent 5fc6389af2
commit dc431e1634
79 changed files with 3570 additions and 310 deletions
+17 -10
View File
@@ -74,6 +74,7 @@
$mnu.append(op.getItemMenuOption(sax.lbl.activate, function () { op.activateItem(item) }, 'sax-unlock'));
$mnu.append(op.getItemMenuOption(sax.lbl.images, function () { op.updateItemImages(item, $item) }, 'sax-image'));
$mnu.append(op.getItemMenuOption(sax.lbl.location, function () { op.updateItemAddress(item, $item) }, 'sax-location'));
$mnu.append(op.getItemMenuOption(sax.lbl.associations, function () { op.viewItemAssociations(item, $item) }, 'sax-network'));
}
$('.sax-burger', $item).toggle(!!$('.sax-dropdown-item', $mnu).length);
$('.sax-panel-messages', $pnl.results).hide().empty();
@@ -106,16 +107,6 @@
return $opt.find('div.sax-label').text(lbl).end().on('click', fn).addClass(cls);
}
//--------------------------------------------------------------
op.onClickMemberCount = function (id)
{
if (!(id * 1)) return;
sax.doPleaseWait();
let frm = $('#frmOrganisationId');
$('.OrganisationId', frm).val(id);
frm.prop('action', sax.url.base + 'Organisation/Members').submit();
}
//--------------------------------------------------------------
op.getFilterSport = function ()
{
@@ -443,6 +434,14 @@
}
//--------------------------------------------------------------
op.onClickMemberCount = function (id)
{
if (!(id * 1)) return;
sax.doPleaseWait();
$('.OrganisationId', $frm.orgId).val(id);
$frm.orgId.prop('action', sax.url.base + 'Organisation/Members').submit();
}
op.updateItemImages = function (item, $item)
{
sax.mdl.organisationImages.updateItemImages(item, $item)
@@ -453,6 +452,14 @@
sax.mdl.organisationAddress.updateItemAddress(item, $item);
}
op.viewItemAssociations = function (item, $item)
{
if (!(item.id * 1)) return;
sax.doPleaseWait();
$('.OrganisationId', $frm.orgId).val(item.id);
$frm.orgId.prop('action', sax.url.base + 'Organisation/Associations').submit();
}
//--------------------------------------------------------------
$(function ()
{