mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Disabled Form Translatation since this isn't working with new JSON Editor
looking for an other way
This commit is contained in:
parent
019e3f5d0c
commit
a6df8aef0d
@ -68,30 +68,6 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/*$('form').jsonForm({
|
|
||||||
schema: {
|
|
||||||
logger,
|
|
||||||
jsonServer,
|
|
||||||
protoServer,
|
|
||||||
boblightServer,
|
|
||||||
udpListener,
|
|
||||||
webConfig,
|
|
||||||
|
|
||||||
},
|
|
||||||
onSubmit: function (errors, values) {
|
|
||||||
if (errors) {
|
|
||||||
console.log(errors);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
console.log(values);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enableFormTranslation("generalConfForm", "editor_holder");
|
|
||||||
|
|
||||||
$("[type='checkbox']").bootstrapSwitch();
|
$("[type='checkbox']").bootstrapSwitch();
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Default language in "lang" attribute will always be "en"
|
* Default language in "lang" attribute will always be "en"
|
||||||
* @param {String} tokenPrefix
|
* @param {String} tokenPrefix
|
||||||
* @param {String} formID
|
* @param {String} formID
|
||||||
*/
|
|
||||||
function enableFormTranslation(tokenPrefix, formID) {
|
function enableFormTranslation(tokenPrefix, formID) {
|
||||||
var $inputs = $("#" + formID + " label");
|
var $inputs = $("#" + formID + " label");
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ $inputs.each(function() {
|
|||||||
$("label[for='" + $(this).attr('id') + "']").html('<span lang="en" data-lang-token="' + tokenPrefix + "_" + $(this).attr('id') + '">' + oldtext + '</span>');
|
$("label[for='" + $(this).attr('id') + "']").html('<span lang="en" data-lang-token="' + tokenPrefix + "_" + $(this).attr('id') + '">' + oldtext + '</span>');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// global vars
|
// global vars
|
||||||
var currentVersion;
|
var currentVersion;
|
||||||
var cleanCurrentVersion;
|
var cleanCurrentVersion;
|
||||||
|
Loading…
Reference in New Issue
Block a user