Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 1 addition & 36 deletions assets/css/admin-main.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,41 +284,6 @@
#directiost-listing-fields_wrapper .btn_wrapper a + a {
margin-left: 10px;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_left {
width: 70%;
}
#directiost-listing-fields_wrapper.atbd_help_support h3 {
font-size: 24px;
}
#directiost-listing-fields_wrapper.atbd_help_support a {
color: #387dff;
}
#directiost-listing-fields_wrapper.atbd_help_support a:hover {
text-decoration: underline;
}
#directiost-listing-fields_wrapper.atbd_help_support .postbox {
padding: 30px;
}
#directiost-listing-fields_wrapper.atbd_help_support .postbox h3 {
margin-bottom: 20px;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap {
display: inline-block;
vertical-align: top;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_right {
width: 27%;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_right .postbox {
background-color: #0073aa;
border-radius: 3px;
-webkit-box-shadow: 0 10px 20px rgba(103, 103, 103, 0.27);
box-shadow: 0 10px 20px rgba(103, 103, 103, 0.27);
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_right .postbox h3 {
color: #fff;
margin-bottom: 25px;
}
#directiost-listing-fields_wrapper .shortcode_table td {
font-size: 14px;
line-height: 22px;
Expand Down Expand Up @@ -49936,4 +49901,4 @@ span.drop-toggle-caret:before {
display: none;
}

/*# sourceMappingURL=admin-main.css.map*/
/*# sourceMappingURL=admin-main.css.map*/
2 changes: 1 addition & 1 deletion assets/css/admin-main.min.css

Large diffs are not rendered by default.

37 changes: 1 addition & 36 deletions assets/css/admin-main.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,41 +284,6 @@
#directiost-listing-fields_wrapper .btn_wrapper a + a {
margin-right: 10px;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_left {
width: 70%;
}
#directiost-listing-fields_wrapper.atbd_help_support h3 {
font-size: 24px;
}
#directiost-listing-fields_wrapper.atbd_help_support a {
color: #387dff;
}
#directiost-listing-fields_wrapper.atbd_help_support a:hover {
text-decoration: underline;
}
#directiost-listing-fields_wrapper.atbd_help_support .postbox {
padding: 30px;
}
#directiost-listing-fields_wrapper.atbd_help_support .postbox h3 {
margin-bottom: 20px;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap {
display: inline-block;
vertical-align: top;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_right {
width: 27%;
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_right .postbox {
background-color: #0073aa;
border-radius: 3px;
-webkit-box-shadow: 0 10px 20px rgba(103, 103, 103, 0.27);
box-shadow: 0 10px 20px rgba(103, 103, 103, 0.27);
}
#directiost-listing-fields_wrapper.atbd_help_support .wrap_right .postbox h3 {
color: #fff;
margin-bottom: 25px;
}
#directiost-listing-fields_wrapper .shortcode_table td {
font-size: 14px;
line-height: 22px;
Expand Down Expand Up @@ -49934,4 +49899,4 @@ span.drop-toggle-caret:before {
/* data Progressing */
.directorist-create-directory__step .directorist-create-directory__content.hidden {
display: none;
}
}
2 changes: 1 addition & 1 deletion assets/css/admin-main.rtl.min.css

Large diffs are not rendered by default.

105 changes: 1 addition & 104 deletions assets/js/admin-main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/admin-main.min.js

Large diffs are not rendered by default.

96 changes: 0 additions & 96 deletions assets/src/js/admin/components/block-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,102 +195,6 @@ window.addEventListener('load', () => {
}
);

// send system info to admin
$('#atbdp-send-system-info-submit').on('click', function (event) {
event.preventDefault();

if (!$('#atbdp-email-subject').val()) {
alert('The Subject field is required');
return;
}
if (!$('#atbdp-email-address').val()) {
alert('The Email field is required');
return;
}
if (!$('#atbdp-email-message').val()) {
alert('The Message field is required');
return;
}
$.ajax({
type: 'post',
url: directorist_admin.ajaxurl,
data: {
action: 'send_system_info', // calls wp_ajax_nopriv_ajaxlogin
_nonce: $('#atbdp_email_nonce').val(),
email: $('#atbdp-email-address').val(),
sender_email: $('#atbdp-sender-address').val(),
subject: $('#atbdp-email-subject').val(),
message: $('#atbdp-email-message').val(),
system_info_url: $('#atbdp-system-info-url').val(),
},
beforeSend() {
$('#atbdp-send-system-info-submit').html('Sending');
},
success(data) {
if (data.success) {
$('#atbdp-send-system-info-submit').html('Send Email');
$('.system_info_success').html('Successfully sent');
}
},
error(data) {
console.log(data);
},
});
});

/**
* Generate new Remote View URL and display it on the admin page
*/
$('#generate-url').on('click', function (e) {
e.preventDefault();
$.ajax({
type: 'post',
url: directorist_admin.ajaxurl,
data: {
action: 'generate_url', // calls wp_ajax_nopriv_ajaxlogin nonce: ()
_nonce: $(this).attr('data-nonce'),
},
success(response) {
$('#atbdp-remote-response').html(response.data.message);
$('#system-info-url, #atbdp-system-info-url').val(
response.data.url
);
$('#system-info-url-text-link')
.attr('href', response.data.url)
.css('display', 'inline-block');
},
error(response) {
// $('#atbdp-remote-response').val(response.data.error);
},
});

return false;
});

$('#revoke-url').on('click', function (e) {
e.preventDefault();
$.ajax({
type: 'post',
url: directorist_admin.ajaxurl,
data: {
action: 'revoke_url', // calls wp_ajax_nopriv_ajaxlogin
_nonce: $(this).attr('data-nonce'),
},
success(response) {
$('#atbdp-remote-response').html(response.data);
$('#system-info-url, #atbdp-system-info-url').val('');
$('#system-info-url-text-link')
.attr('href', '#')
.css('display', 'none');
},
error(response) {
// $('#atbdp-remote-response').val(response.data.error);
},
});

return false;
});

// redirect to import import_page_link
$('#csv_import input[name="csv_import"]').on('change', function (event) {
event.preventDefault();
Expand Down
19 changes: 0 additions & 19 deletions assets/src/js/admin/components/block-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,25 +292,6 @@ document.addEventListener('DOMContentLoaded', () => {
});

// ─── Custom Tab Support ───────────────────────────────────────────────────────
$('.atbds_wrapper a.nav-link').on('click', function (e) {
e.preventDefault();
const atbds_tabParent = $(this).parent().parent().find('a.nav-link');
const $href = $(this).attr('href');
$(atbds_tabParent).removeClass('active');
$(this).addClass('active');

switch ($(this).data('tabarea')) {
case 'atbds_system-status-tab':
$(`.tab-content[data-tabarea='atbds_system-status-tab'] >.tab-pane`).removeClass('active show');
$(`.tab-content[data-tabarea='atbds_system-status-tab'] ${$href}`).addClass('active show');
break;
case 'atbds_system-info-tab':
$(`.tab-content[data-tabarea='atbds_system-info-tab'] >.tab-pane`).removeClass('active show');
$(`.tab-content[data-tabarea='atbds_system-info-tab'] ${$href}`).addClass('active show');
break;
}
});

// ─── Custom Tooltip ───────────────────────────────────────────────────────────
$('.atbds_tooltip').on('hover', function () {
const toolTipLabel = $(this).data('label');
Expand Down
Loading
Loading