mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Disabled Form Translatation since this isn't working with new JSON Editor
looking for an other way
This commit is contained in:
		| @@ -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(); | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user