mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
New JSON Editor
This commit is contained in:
parent
dae32f72bf
commit
019e3f5d0c
@ -90,7 +90,7 @@
|
||||
|
||||
|
||||
|
||||
enableFormTranslation("generalConfForm", "generalConfForm");
|
||||
enableFormTranslation("generalConfForm", "editor_holder");
|
||||
|
||||
$("[type='checkbox']").bootstrapSwitch();
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
* @param {String} formID
|
||||
*/
|
||||
function enableFormTranslation(tokenPrefix, formID) {
|
||||
var $inputs = $("#" + formID + " :input");
|
||||
var $inputs = $("#" + formID + " label");
|
||||
|
||||
$inputs.each(function() {
|
||||
console.log("InputID: " + $(this).attr('id'));
|
||||
@ -34,13 +34,13 @@ function button_reloaddata(){
|
||||
hyperionport = $("#json_port").val();
|
||||
loaddata();
|
||||
};
|
||||
|
||||
|
||||
function loaddata() {
|
||||
|
||||
|
||||
webSocket = new WebSocket('ws://'+document.location.hostname+':'+hyperionport);
|
||||
|
||||
webSocket.onerror = function(event) {
|
||||
$('#con_error_modal').modal('show');
|
||||
$('#con_error_modal').modal('show');
|
||||
};
|
||||
|
||||
webSocket.onopen = function(event) {
|
||||
@ -57,12 +57,12 @@ function loaddata() {
|
||||
// get host
|
||||
var hostname = parsedServerInfoJSON.info.hostname;
|
||||
$('#dash_systeminfo').html(hostname+':'+hyperionport);
|
||||
|
||||
|
||||
$.get( "https://raw.githubusercontent.com/hyperion-project/hyperion.ng/master/version.json", function( data ) {
|
||||
parsedUpdateJSON = JSON.parse(data);
|
||||
latestVersion = parsedUpdateJSON[0].versionnr;
|
||||
cleanLatestVersion = latestVersion.replace(/\./g, '');
|
||||
|
||||
|
||||
$('#currentversion').html(' V'+currentVersion);
|
||||
$('#latestversion').html(' V'+latestVersion);
|
||||
|
||||
@ -73,6 +73,6 @@ function loaddata() {
|
||||
$('#versioninforesult').html('<div lang="en" data-lang-token="dashboard_message_infobox_updatesuccess" style="margin:0px;" class="alert alert-success">You run the latest version of Hyperion.</div>');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -826,7 +826,7 @@
|
||||
"port" :
|
||||
{
|
||||
"type" : "integer",
|
||||
"description" : "Port",
|
||||
"title" : "Port",
|
||||
"required" : true
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user