mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
More accurate selector because of asynchronous shit related to slider effect
This commit is contained in:
parent
5c247672ad
commit
981407edfc
1 changed files with 2 additions and 2 deletions
|
@ -143,12 +143,12 @@
|
|||
"next_number": log.logs.length == number ? number * 10:false,
|
||||
"locale": y18n.locale
|
||||
}, function() {
|
||||
log = $("#log").html();
|
||||
log = $("#main #log").html();
|
||||
log = log.replace(/.*: ERROR - .*/g, function (match) { return '<span class="alert-danger">'+match+'</span>'});
|
||||
log = log.replace(/.*: WARNING - .*/g, function (match) { return '<span class="alert-warning">'+match+'</span>'});
|
||||
log = log.replace(/.*: SUCCESS - .*/g, function (match) { return '<span class="alert-success">'+match+'</span>'});
|
||||
log = log.replace(/.*: INFO - .*/g, function (match) { return '<span class="alert-info">'+match+'</span>'});
|
||||
$("#log").html(log);
|
||||
$("#main #log").html(log);
|
||||
|
||||
// Configure behavior for the button to share log on Yunohost (it calls display --share)
|
||||
$('button[data-action="share"]').on("click", function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue