From d8ededa354ecbccafe48033d66edb7316a942f5a Mon Sep 17 00:00:00 2001 From: Miguel Pellicer Date: Sat, 25 Apr 2020 17:54:05 +0200 Subject: [PATCH] SAK-43601 - Group Manager: Enable the add button if the title has a value. (#8188) --- .../main/webapp/WEB-INF/templates/fragments/javascript.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site-manage/site-group-manager/src/main/webapp/WEB-INF/templates/fragments/javascript.html b/site-manage/site-group-manager/src/main/webapp/WEB-INF/templates/fragments/javascript.html index 1defa9e54391..825fa84edeb5 100644 --- a/site-manage/site-group-manager/src/main/webapp/WEB-INF/templates/fragments/javascript.html +++ b/site-manage/site-group-manager/src/main/webapp/WEB-INF/templates/fragments/javascript.html @@ -132,8 +132,8 @@ // Initialize tooltips $('[data-toggle="tooltip"]').tooltip(); - //Disable the submit button - $('#create-group-submit-button').prop('disabled', true); + //Disable or enable the submit depending on the group title value. + $('#create-group-submit-button').prop('disabled', $('#groupTitle').val() === ''); //Enable or disable the submit button depending on the required fields $('input[type="text"]').keyup(function() {