diff options
author | Mario <mario@mariovavti.com> | 2022-01-19 13:18:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-19 13:19:32 +0000 |
commit | c742f25801b726a0d2e32460d2d87d0ad9c05caf (patch) | |
tree | 0dd306fe95af8840dceea9405fdc4756dbf557e1 /view/tpl/contact_edit_modal.tpl | |
parent | d98d56c3b5481e12dc53136c06b6c9c069d40d98 (diff) | |
download | volse-hubzilla-c742f25801b726a0d2e32460d2d87d0ad9c05caf.tar.gz volse-hubzilla-c742f25801b726a0d2e32460d2d87d0ad9c05caf.tar.bz2 volse-hubzilla-c742f25801b726a0d2e32460d2d87d0ad9c05caf.zip |
prevent duplicate ids and adjust spinner color
Diffstat (limited to 'view/tpl/contact_edit_modal.tpl')
-rw-r--r-- | view/tpl/contact_edit_modal.tpl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/view/tpl/contact_edit_modal.tpl b/view/tpl/contact_edit_modal.tpl index 9e958c3a9..ddb1557c1 100644 --- a/view/tpl/contact_edit_modal.tpl +++ b/view/tpl/contact_edit_modal.tpl @@ -103,9 +103,10 @@ function init_contact_edit(poi) { if (!poi) - return - $('#contact-edit-rotator-' + poi).addClass('d-inline-block'); - $('#contact-edit-icon-' + poi).hide(); + return; + + $('.contact-edit-rotator-' + poi).addClass('d-inline-block'); + $('.contact-edit-icon-' + poi).hide(); $.get('contactedit/' + poi, function(data) { if (!data.success) { $.jGrowl(data.message, {sticky: false, theme: 'notice', life: 10000}); @@ -119,8 +120,8 @@ function activate(data) { $('#contact-save').removeClass('disabled'); $('#contact-tools').removeClass('disabled'); - $('#contact-edit-rotator-' + poi).removeClass('d-inline-block'); - $('#contact-edit-icon-' + poi).show(); + $('.contact-edit-rotator-' + poi).removeClass('d-inline-block'); + $('.contact-edit-icon-' + poi).show(); if (data.title) { $('#edit-modal-title').html(data.title); |