Implement a button for #188

This commit is contained in:
calzoneman 2013-06-30 16:01:19 -04:00
parent 543ec91e9b
commit f84073ad38
2 changed files with 7 additions and 0 deletions

View File

@ -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>

View File

@ -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);