diff options
author | Mario <mario@mariovavti.com> | 2022-01-19 13:18:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-19 13:18:47 +0000 |
commit | b153687bf1cdc659bb320f37d64748386ca30cbb (patch) | |
tree | c54fab8098d6e843e86b508e3dc3e31804b371fe /view/tpl/contact_edit_modal.tpl | |
parent | 3318f093dabd679be55d5b7f5fab1e48dc0d4f94 (diff) | |
download | volse-hubzilla-b153687bf1cdc659bb320f37d64748386ca30cbb.tar.gz volse-hubzilla-b153687bf1cdc659bb320f37d64748386ca30cbb.tar.bz2 volse-hubzilla-b153687bf1cdc659bb320f37d64748386ca30cbb.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); |