{#include main fluid=true}
{#style}
table {
table-layout:fixed;
width:100%;
}
td {
word-wrap:break-word;
word-break:break-all;
}
#tables{
padding-bottom: 40px;
}
.formInputButton:hover {
color: #3366ac !important;
cursor: pointer;
}
#filterInputGroup {
padding-bottom: 10px;
}
{/style}
{#script}
$(document).ready(function(){
$("#filterInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$(".configTable tr").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
$(".configInput").on("keyup", function(event) {
event.preventDefault();
if (event.keyCode === 13) {
event.preventDefault();
changeInputValue(event.target.id);
}
});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
});
function clearFilterInput(){
$("#filterInput").val("");
$(".configTable tr").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf("") > -1)
});
}
function changeInputValue(name){
var $el = $("input[id='" + name + "']");
var $tr = $("tr[id='tr-" + name + "']");
var value = $el.val();
$.post("",
{
name: name,
value: value
},
function(data, status){
if(status === "success"){
changeBackgroundColor("#76be6b", $el);
$('#configTable1 tr:last').after($tr);
}else{
changeBackgroundColor("#ff6366", $el);
}
});
}
function changeBackgroundColor(color, element){
var x = 3000;
var originalColor = element.css("background");
element.css("background", color);
setTimeout(function(){
element.css("background", originalColor);
}, x);
}
{/script}
{#title}Config Editor{/title}
{#body}
Property |
Value |
Description |
{#for configsource in info:config}
{#for item in configsource.value}
{item.configValue.name}
|
{#if configsource.key.editable}
{#else}
{item.configValue.value}
{/if}
|
{item.description.fmtJavadoc??}
|
{/for}
{/for}
{/body}
{/include}