]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5655 Hide "Edit" link on widget while already editing
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 3 Oct 2014 14:31:28 +0000 (16:31 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 3 Oct 2014 14:31:28 +0000 (16:31 +0200)
server/sonar-web/src/main/js/dashboard.js

index 1e2a5b39a79edb8e2f45dc9c761ade10545b1228..fdaf036946176dee9e1b65fba4de350e78541e2b 100644 (file)
       $('#widget_title_' + widgetId).hide();
       $('#widget_' + widgetId).hide();
       $('#widget_props_' + widgetId).show();
+      $($('#block_' + widgetId + ' a.link-action')[0]).hide();
     },
 
 
       $('widget_title_' + widgetId).show();
       $('#widget_' + widgetId).show();
       $('#widget_props_' + widgetId).hide();
+      $($('#block_' + widgetId + ' a.link-action')[0]).show();
     },