Skip to content
Snippets Groups Projects
Commit 0eb76621 authored by Prasad's avatar Prasad
Browse files

Fixes #485: Allow deletion of mailconverter rule

parent c0e9e0d9
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ jQuery.Class('Settings_MailConverter_Index_Js', {
triggerDeleteRule: function (currentElement, url) {
var deleteElement = jQuery(currentElement);
app.helper.showConfirmationBox({'message': app.vtranslate('LBL_DELETE_CONFIRMATION')}).then(function () {
app.request.get({url:url}).then(function (err, data) {
app.request.post({url:url}).then(function (err, data) {
if (data) {
var closestBlock = deleteElement.closest('[data-blockid]');
var nextBlocks = closestBlock.nextAll('[data-blockid]');
......@@ -182,4 +182,4 @@ jQuery.Class('Settings_MailConverter_Index_Js', {
jQuery(document).ready(function () {
var mcInstance = Settings_MailConverter_Index_Js.mailConverterInstance = new Settings_MailConverter_Index_Js();
mcInstance.registerEvents();
});
\ No newline at end of file
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment