Add domain form must post data to his own url.

This commit is contained in:
opi 2014-03-03 19:59:42 +01:00
parent 54978e957d
commit c909515bf2
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -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">