From 66bf90cce772687e4301b821ecc25a8aaa6ae036 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 10 May 2016 10:52:43 +0200 Subject: [PATCH] SONAR-7545 limit the input length on "Update Key" page --- .../WEB-INF/app/views/project/_key_modules.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb index 4cca51a28b6..471065cbd2e 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/_key_modules.html.erb @@ -4,15 +4,15 @@ <% form_tag( {:action => 'update_key', :id => current_module.id }, :onsubmit => "update_launched();$j('#loading_#{id_prefix}').show();") do -%> - + <%= submit_tag message('update_key.rename'), :id => 'update_key_' + id_prefix, :class => 'action', - :confirm => message('update_key.are_you_sure_to_rename_x', :params => current_module.key) %> + :confirm => message('update_key.are_you_sure_to_rename_x', :params => current_module.key) %> <%= message('update_key.reset') -%> <% end %> <% current_module.modules.each_with_index do |sub_module, index| %> - <%= render :partial => 'key_modules', :locals => {:current_module => sub_module, :module_depth => module_depth+1, + <%= render :partial => 'key_modules', :locals => {:current_module => sub_module, :module_depth => module_depth+1, :id_prefix => id_prefix + (index+1).to_s} -%> - <% end %> \ No newline at end of file + <% end %> -- 2.39.5