Automatically show config modal when adding a new notifier

This commit is contained in:
JonnyWong16 2016-10-09 14:34:05 -07:00 committed by JonnyWong16
commit 50941055fb
3 changed files with 20 additions and 15 deletions

View file

@ -31,15 +31,7 @@ DOCUMENTATION :: END
// Load notification agent config modal
$(".toggle-notifier-config-modal").click(function () {
var notifier_id = $(this).data('id');
$.ajax({
url: 'get_notifier_config_modal',
data: { notifier_id: notifier_id },
cache: false,
async: true,
complete: function (xhr, status) {
$("#notifier-config-modal").html(xhr.responseText);
}
});
loadNotifierConfig(notifier_id);
});
$('.trigger-tooltip').tooltip();