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">
|
<input type="text" id="channame" placeholder="Channel Name">
|
||||||
<button class="btn" id="chanlog">Channel log</button>
|
<button class="btn" id="chanlog">Channel log</button>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn" id="log_reverse">Reverse Log</button>
|
||||||
</form>
|
</form>
|
||||||
<pre id="log"></pre>
|
<pre id="log"></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -123,6 +123,12 @@ $("#actionlog_time").click(function() {
|
||||||
tableResort($("#actionlog table"), "time");
|
tableResort($("#actionlog table"), "time");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function reverseLog() {
|
||||||
|
$("#log").text($("#log").text().split("\n").reverse().join("\n"));
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#log_reverse").click(reverseLog);
|
||||||
|
|
||||||
function getSyslog() {
|
function getSyslog() {
|
||||||
$.ajax(WEB_URL+"/api/plain/readlog?type=sys&"+AUTH).done(function(data) {
|
$.ajax(WEB_URL+"/api/plain/readlog?type=sys&"+AUTH).done(function(data) {
|
||||||
$("#log").text(data);
|
$("#log").text(data);
|
||||||
|
|
Loading…
Reference in New Issue