mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
WebClient: remove inline style from HTML elements
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -141,6 +141,10 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
.wrap-word {
|
.wrap-word {
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.line-through {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
|
|||||||
@@ -366,11 +366,11 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
recList.empty();
|
recList.empty();
|
||||||
$.each(response.data, function(key, item) {
|
$.each(response.data, function(key, item) {
|
||||||
itemCode = escapeHTML(item.code);
|
itemCode = escapeHTML(item.code);
|
||||||
let style = "";
|
let txtStyleClass = "";
|
||||||
if (item.used) {
|
if (item.used) {
|
||||||
style = `style="text-decoration: line-through;"`;
|
txtStyleClass = "line-through";
|
||||||
}
|
}
|
||||||
recList.append(`<li class="d-flex align-items-center py-2 fw-semibold fs-5 text-gray-800" ${style}><span class="bullet bullet-dot me-5"></span>${itemCode}</li>`);
|
recList.append(`<li class="d-flex align-items-center py-2 fw-semibold fs-5 text-gray-800 ${txtStyleClass}"><span class="bullet bullet-dot me-5"></span>${itemCode}</li>`);
|
||||||
});
|
});
|
||||||
recCodesModal.show();
|
recCodesModal.show();
|
||||||
}).catch(function (error){
|
}).catch(function (error){
|
||||||
|
|||||||
Reference in New Issue
Block a user