aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-04 14:08:12 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-04 14:08:12 +0000
commitdcb65233c8cecc782be884623b1adcf495df75f8 (patch)
tree2fe44fd248483df9809d133b80d600e55ba28f3b /sonar-server/src
parent7154795d71f1d293c5fb3c5673911f40bab05e01 (diff)
downloadsonarqube-dcb65233c8cecc782be884623b1adcf495df75f8.tar.gz
sonarqube-dcb65233c8cecc782be884623b1adcf495df75f8.zip
fix system updates on chrome
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/system_updates.html.erb16
1 files changed, 11 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/system_updates.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/system_updates.html.erb
index aaf3e5a0f69..2be50e1b221 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/system_updates.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/system_updates.html.erb
@@ -4,7 +4,13 @@
list-style-position: inside;
}
</style>
-
+ <script>
+ function submitForm(elt) {
+ elt.submit();
+ elt.disable();
+ return false;
+}
+</script>
<%= render :partial => 'updatecenter/tabs', :locals => {:tab => 'system_updates'} -%>
<div class="tabs-panel">
@@ -60,15 +66,15 @@
<% update.getIncompatiblePlugins().each do |incompatible_plugin| %>
<li><%= image_tag 'warning.png' -%> The plugin <%= incompatible_plugin.getName() -%> is not compatible and must be uninstalled.
<form method="post" action="<%= ApplicationController.root_context -%>/updatecenter/uninstall?key=<%= incompatible_plugin.getKey() -%>&amp;from=system_updates" style="display: inline-block">
- <input type="submit" value="Uninstall" onClick="disable();return true;"></input>
- </form>
+ <input type="submit" value="Uninstall" onClick="return submitForm(this);"></input>
+ </form>
</li>
<% end %>
<% update.getPluginsToUpgrade().each do |plugin_to_upgrade| %>
<li>Upgrade the plugin <%= plugin_to_upgrade.getArtifact().getName() -%>.
<form method="post" id="upgrade-form-<%= plugin_to_upgrade.getArtifact().getKey() -%>" action="<%= ApplicationController.root_context -%>/updatecenter/install?key=<%= plugin_to_upgrade.getArtifact().getKey() -%>&amp;version=<%= plugin_to_upgrade.getVersion() -%>&amp;from=system_updates" style="display: inline-block">
- <input type="submit" id="upgrade-submit-<%= plugin_to_upgrade.getArtifact().getKey() -%>" value="Upgrade to <%= plugin_to_upgrade.getVersion() -%>" onClick="this.disable();return true;"></input>
- </form>
+ <input type="submit" id="upgrade-submit-<%= plugin_to_upgrade.getArtifact().getKey() -%>" value="Upgrade to <%= plugin_to_upgrade.getVersion() -%>" onClick="return submitForm(this);"></input>
+ </form>
</li>
<% end %>
<li><%= link_to 'Download', release.getDownloadUrl(), :class => 'external' -%> and carefully read the upgrade guide.</li>