Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed May 1, 2024
1 parent 62e57da commit 95336da
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions app/PluginHero/templates/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@
}

var deactivationUrl = '';
window.onload = function(){
$(document).on('click', 'tr[data-plugin="'+slug+'"] .column-primary .deactivate a', function(e){
e.preventDefault()
deactivationUrl = $(this).attr('href');
$('#'+pluginKey+'-feedback-modal').css('display', 'flex');
});
}
$(document).on('click', 'tr[data-plugin="'+slug+'"] .column-primary .deactivate a', function(e) {
e.preventDefault()
deactivationUrl = $(this).attr('href');
$('#'+pluginKey+'-feedback-modal').css('display', 'flex');
});

$(document).on('click', '.'+pluginKey+'-feedback-button-cancel', function(e){
$(document).on('click', '.'+pluginKey+'-feedback-button-cancel', function(e) {
e.preventDefault();
$('#'+pluginKey+'-feedback-modal').css('display', 'none');
});
Expand Down Expand Up @@ -75,12 +73,12 @@
}
}

$(document).on('click', '.'+pluginKey+'-feedback-skip', function(e){
$(document).on('click', '.'+pluginKey+'-feedback-skip', function(e) {
e.preventDefault();
deactivateProcess("I rather wouldn't say", 'rather-wouldnt-say');
});

$(document).on('click', '.'+pluginKey+'-feedback-button-deactivate', function(e){
$(document).on('click', '.'+pluginKey+'-feedback-button-deactivate', function(e) {
e.preventDefault();
var reason = $('.'+pluginKey+'_deactivation_reason:checked').val();
var detail = $('#'+pluginKey+'_deactivation_reason_detail').val();
Expand Down

0 comments on commit 95336da

Please sign in to comment.