From c9b0890506d3704cd7a781f0dba8404c9a3268fa Mon Sep 17 00:00:00 2001 From: freddyucv Date: Tue, 5 Jul 2022 08:13:45 -0600 Subject: [PATCH] #22149 Change menu message when no User is Selected --- dotCMS/src/main/webapp/WEB-INF/messages/Language.properties | 2 ++ .../webapp/html/portlet/ext/useradmin/view_users_js_inc.jsp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties b/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties index 0d6cc6fbbec9..4d3c295cba34 100644 --- a/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties +++ b/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties @@ -117,6 +117,7 @@ add-tag = Add Tag Add-Template = Add Template add-template = Add Template Add-To-Bundle = Add To Bundle +Add-To-Bundle-all-users = Add All Users To Bundle Add-to-List = Add to List Add-User = Add User add-variable = Add Variable @@ -3359,6 +3360,7 @@ Remote-Address = Remote Address remote-host-ip = Remote Site/IP Remote-Publish-Bundle = Push Publish Bundle Remote-Publish = Push Publish +Remote-Publish-all-users = Push Publish All User remote-syncronization-title = Push Publish Categories Remote-Syncronization = Push Publish remove-address-confirmation = Are you sure you want to remove this Address? (This operation cannot be undone) diff --git a/dotCMS/src/main/webapp/html/portlet/ext/useradmin/view_users_js_inc.jsp b/dotCMS/src/main/webapp/html/portlet/ext/useradmin/view_users_js_inc.jsp index 4c1d4d540c8a..9decd59a049a 100644 --- a/dotCMS/src/main/webapp/html/portlet/ext/useradmin/view_users_js_inc.jsp +++ b/dotCMS/src/main/webapp/html/portlet/ext/useradmin/view_users_js_inc.jsp @@ -304,7 +304,9 @@ !confirm(abondonUserChangesConfirm)) return; - window.selectedUser = userId; + document.getElementById('remotePublishUsersDiv_text').innerHTML = '<%=LanguageUtil.get(pageContext, "Remote-Publish")%>'; + document.getElementById('addToBundleUsersDiv_text').innerHTML = '<%=LanguageUtil.get(pageContext, "Add-To-Bundle")%>'; + dojo.byId('userProfileTabs').style.display = 'none'; dojo.byId('loadingUserProfile').style.display = ''; dojo.byId('gravatarTextHolder').display='none';