mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
Change order of display for long and short url
This commit is contained in:
parent
25c12960f3
commit
04421a592b
2 changed files with 7 additions and 7 deletions
|
@ -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 a new issue