Disabled Form Translatation since this isn't working with new JSON Editor

looking for an other way
This commit is contained in:
b1rdhous3 2016-08-31 00:28:07 +02:00
parent 019e3f5d0c
commit a6df8aef0d
2 changed files with 2 additions and 26 deletions

View File

@ -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();

View File

@ -10,7 +10,7 @@
* Default language in "lang" attribute will always be "en"
* @param {String} tokenPrefix
* @param {String} formID
*/
function enableFormTranslation(tokenPrefix, formID) {
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>');
});
}
*/
// global vars
var currentVersion;
var cleanCurrentVersion;