]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3825 exit the edit mode when saving a filter
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Dec 2012 09:40:10 +0000 (10:40 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Dec 2012 09:40:10 +0000 (10:40 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_list.html.erb

index ccdde9a28bdffca49e449b0fb1cca77267354e45..296540d7726dcd9c5c9267473ffa32e4d1b229f7 100644 (file)
@@ -205,7 +205,6 @@ paging_previous=Previous
 project_name=Project name
 remove_column=Remove this column
 results_not_display_due_to_security=Due to security settings, some results are not being displayed.
-save_and_close=Save & Close
 save_and_preview=Save & Preview
 select_a_metric=Select a metric
 set_as_default=Set as default
@@ -387,6 +386,7 @@ session.flash_notice.logged_out=You have been logged out.
 # MEASURE FILTERS
 #
 #------------------------------------------------------------------------------
+measure_filter.close_and_save=Close & Save
 measure_filter.delete_column=Delete column
 measure_filter.no_filters=No filters
 measure_filter.display_as=Display as
index 4eaa345ebdd48aeb63a4a620620cca0dc32f629f..b8bc8aa654f265d95d0e09d9d8acef9b05180a4b 100644 (file)
       <td class="right">
         <a href="#" class="button" id="exit-edit"><%= message 'close' -%></a>
         <% if filter.owner?(current_user) %>
-          <a id="save-columns" href="<%= url_for params.merge({:action => 'save_form', :id => filter.id}) -%>" class="button open-modal"><%= message('save_and_close') -%></a>
+          <a id="save-columns" href="<%= url_for filter.criteria.merge({:edit => nil, :action => 'save_form', :id => filter.id}) -%>" class="button open-modal"><%= message('measure_filter.close_and_save') -%></a>
         <% end %>
       </td>
     </tr>