mirror of https://github.com/calzoneman/sync.git
Implement a button for #188
This commit is contained in:
parent
543ec91e9b
commit
f84073ad38
|
@ -77,6 +77,7 @@
|
|||
<input type="text" id="channame" placeholder="Channel Name">
|
||||
<button class="btn" id="chanlog">Channel log</button>
|
||||
</div>
|
||||
<button class="btn" id="log_reverse">Reverse Log</button>
|
||||
</form>
|
||||
<pre id="log"></pre>
|
||||
</div>
|
||||
|
|
|
@ -123,6 +123,12 @@ $("#actionlog_time").click(function() {
|
|||
tableResort($("#actionlog table"), "time");
|
||||
});
|
||||
|
||||
function reverseLog() {
|
||||
$("#log").text($("#log").text().split("\n").reverse().join("\n"));
|
||||
}
|
||||
|
||||
$("#log_reverse").click(reverseLog);
|
||||
|
||||
function getSyslog() {
|
||||
$.ajax(WEB_URL+"/api/plain/readlog?type=sys&"+AUTH).done(function(data) {
|
||||
$("#log").text(data);
|
||||
|
|
Loading…
Reference in New Issue