mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
WebUi: Beauty Tweaks (Instance, 3rd party Licenses) (#597)
* WebUi: Instance Management Tweaks and Chars Needed Information * WebUi: 3rd Party Licenses Tweaks * WebUi: Apply changes from Brindosch PR #596 * WebUi: Changing i18n tokens and adding catch event for connection error * WebUi: Adding Link to GitHub License Ressource if an error is catched
This commit is contained in:
@@ -86,6 +86,10 @@ $(document).ready( function() {
|
||||
|
||||
$('#inst_name').off().on('input',function(e) {
|
||||
(e.currentTarget.value.length >= 5) ? $('#btn_create_inst').attr('disabled', false) : $('#btn_create_inst').attr('disabled', true);
|
||||
if(5-e.currentTarget.value.length >= 1 && 5-e.currentTarget.value.length <= 4)
|
||||
$('#inst_chars_needed').html(5-e.currentTarget.value.length + " " + $.i18n('general_chars_needed'))
|
||||
else
|
||||
$('#inst_chars_needed').html("<br />")
|
||||
});
|
||||
|
||||
$('#btn_create_inst').off().on('click',function(e) {
|
||||
|
Reference in New Issue
Block a user