mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-12-22 19:57:57 +00:00
Change order of display for long and short url
This commit is contained in:
parent
25c12960f3
commit
04421a592b
@ -52,8 +52,8 @@
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Long URL</td>
|
||||
<td>Short url</td>
|
||||
<td>Long URL</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -25,8 +25,8 @@ const TR = (row) => {
|
||||
const shortTD = TD(A_INT(row.short));
|
||||
const btn = deleteButton(row.short);
|
||||
|
||||
tr.appendChild(longTD);
|
||||
tr.appendChild(shortTD);
|
||||
tr.appendChild(longTD);
|
||||
tr.appendChild(btn);
|
||||
|
||||
return tr;
|
||||
@ -67,12 +67,12 @@ const submitForm = () => {
|
||||
method: "POST",
|
||||
body: `${longUrl.value};${shortUrl.value}`
|
||||
})
|
||||
.then(_ => {
|
||||
longUrl.value = "";
|
||||
shortUrl.value = "";
|
||||
.then(_ => {
|
||||
longUrl.value = "";
|
||||
shortUrl.value = "";
|
||||
|
||||
refreshData();
|
||||
});
|
||||
refreshData();
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user