mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added JavaScript to modal
This commit is contained in:
@@ -125,10 +125,12 @@ $('#create-template').click('', function(e) {
|
|||||||
var template = $("#template").val();
|
var template = $("#template").val();
|
||||||
var template_id = $("#template_id").val();
|
var template_id = $("#template_id").val();
|
||||||
var name = $("#name").val();
|
var name = $("#name").val();
|
||||||
|
var title = $("#title").val();
|
||||||
|
var title_rec = $("#title_rec").val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "ajax_form.php",
|
url: "ajax_form.php",
|
||||||
data: { type: "alert-templates", template: template , name: name, template_id: template_id},
|
data: { type: "alert-templates", template: template , name: name, template_id: template_id, title: title, title_rec: title_rec},
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
success: function(msg){
|
success: function(msg){
|
||||||
if(msg.indexOf("ERROR:") <= -1) {
|
if(msg.indexOf("ERROR:") <= -1) {
|
||||||
|
Reference in New Issue
Block a user