diff --git a/index.html b/index.html
index 9d1d74c..b87c652 100644
--- a/index.html
+++ b/index.html
@@ -302,14 +302,18 @@
Start a new task
placement: "top",
})
btn.on('click', function() {
- $.post('http://{{IP}}:{{PORT}}/proc?name=' + name, function(response) {
- var b = $('#rerun-'+name)
- b.popover('show');
- setTimeout(function() {
- b.popover('hide');
- window.location.href = 'http://{{IP}}:{{PORT}}/';
- }, 2000);
- })
+ $.ajax({
+ url: "http://{{IP}}:{{PORT}}/proc?name=" + name,
+ type: "PUT",
+ success: function(response) {
+ var b = $('#rerun-'+name)
+ b.popover('show');
+ setTimeout(function() {
+ b.popover('hide');
+ window.location.href = 'http://{{IP}}:{{PORT}}/';
+ }, 2000);
+ }
+ });
})
}
@@ -355,7 +359,7 @@ Start a new task
if (type == 'cron' && $('#tcron').val()) data.cron = $('#tcron').val()
$.ajax({
url: "http://{{IP}}:{{PORT}}/proc",
- type: "PUT",
+ type: "POST",
contentType: "application/json",
data: JSON.stringify(data),
success: function(response) {
diff --git a/meproc.m b/meproc.m
index 8acb916..53c1813 100644
--- a/meproc.m
+++ b/meproc.m
@@ -10,7 +10,7 @@
return;
} fi
-Log('info', "Meproc v1.0.1. Listen on: " + Conf['ip'] + ':' + Conf['port']);
+Log('info', "Meproc v1.0.2. Listen on: " + Conf['ip'] + ':' + Conf['port']);
Eval('@/http.m');
Eval('@/bootstrap.m', nil, false, 'bootstrap');