webui: some editor style tweaks (#234)

* initial support for leddevice options

* fix schema and editor init

* fix led editor labels and schema

* add some led schemas

* led config: insert current values. not yet perfect, but it works

* tune editor style
This commit is contained in:
redPanther
2016-09-10 23:30:05 +02:00
committed by GitHub
parent 8aff421850
commit 82611afa25
6 changed files with 33 additions and 8 deletions

View File

@@ -30,19 +30,27 @@ $(hyperion).one("cmd-config-getschema", function(event) {
var grabber_conf_editor = new JSONEditor(element,{
theme: 'bootstrap3',
iconlib: "fontawesome4",
disable_collapse: 'true',
form_name_root: 'sa',
disable_edit_json: 'true',
disable_properties: 'true',
no_additional_properties: 'true',
schema: {
title:' ',
title:'',
properties: {
schema_framegrabber,
schema_grabberv4l2,
}
}
});
$('#editor_container .well').css("background-color","white");
$('#editor_container .well').css("border","none");
$('#editor_container .well').css("box-shadow","none");
$('#editor_container .btn').addClass("btn-primary");
$('#editor_container h3').first().remove();
});