Skip to content

Commit 790cee1

Browse files
committed
reversed changed from 1b3cd24
1 parent eea450b commit 790cee1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

app/news.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,6 @@
112112
class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
113113
<h6 class="m-0 font-weight-bold text-primary">Lista de notícias</h6>
114114
</div>
115-
<div style="position:absolute;
116-
right:22px;
117-
top: 12px;">
118-
<select>
119-
<script>
120-
const sortingMethods = ["ascending", "descending"];
121-
122-
// get value from url
123-
const defaultMethod = decodeURIComponent(document.location.href.substring(document.location.href.indexOf("sort=")+5));
124-
document.write("<OPTION value=1>"+defaultMethod+"</OPTION>");
125-
126-
// put all other options
127-
sortingMethods.filter(method => method !== defaultMethod)
128-
.forEach((method, i) => document.write("<OPTION value="+i+">"+method+"</OPTION>"));
129-
</script>
130-
</select>
131-
</div>
132115
<!-- Card Body -->
133116
<div class="card-body">
134117
<form method="post" onsubmit="return confirm('Tem a certeza que pretende eliminar permanentemente esta notícia?\nTenha em atenção que esta ação é irreversível.');">

0 commit comments

Comments
 (0)