mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Add domain form must post data to his own url.
This commit is contained in:
parent
54978e957d
commit
c909515bf2
2 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ app = Sammy('#main', function (sam) {
|
||||||
c.view('domain_add', {'DDomains': ['.nohost.me', '.noho.st']});
|
c.view('domain_add', {'DDomains': ['.nohost.me', '.noho.st']});
|
||||||
});
|
});
|
||||||
|
|
||||||
sam.post('#/domains', function (c) {
|
sam.post('#/domains/add', function (c) {
|
||||||
if (c.params['domain'] == '') {
|
if (c.params['domain'] == '') {
|
||||||
if (c.params['ddomain'] == '') {
|
if (c.params['ddomain'] == '') {
|
||||||
c.flash('fail', "You should indicate a domain");
|
c.flash('fail', "You should indicate a domain");
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<div class="br"></div>
|
<div class="br"></div>
|
||||||
|
|
||||||
<form action="#/domains" method="POST" class="form-horizontal">
|
<form action="#/domains/add" method="POST" class="form-horizontal">
|
||||||
|
|
||||||
<div class="panel-group" id="accordion">
|
<div class="panel-group" id="accordion">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
|
|
Loading…
Add table
Reference in a new issue