summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstephenbroyer <stephen.broyer@sonarsource.com>2013-09-23 10:57:09 +0200
committerstephenbroyer <stephen.broyer@sonarsource.com>2013-09-23 11:00:09 +0200
commit3dd3683802748a77894908b3b6382a89b5291fc0 (patch)
tree5518a1318894d0d23d3c76a0ac251545a363af9e
parentc2d669ea9edd761618a9c4ae930ffdf47cc3895e (diff)
downloadsonarqube-3dd3683802748a77894908b3b6382a89b5291fc0.tar.gz
sonarqube-3dd3683802748a77894908b3b6382a89b5291fc0.zip
SONAR-4613 Remove prototypejs from "Update Center" administration console
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb6
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb12
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb8
3 files changed, 13 insertions, 13 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb
index 71f72fdf538..4e3bb5de928 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/_operations.html.erb
@@ -1,9 +1,9 @@
<script type="text/javascript">
function showPlugin(key) {
- if ($('detail-' + key).visible()) {
- $('detail-' + key).hide();
+ if ($j('#detail-' + key).is(':visible')) {
+ $j('#detail-' + key).hide();
} else {
- $('detail-' + key).show();
+ $j('#detail-' + key).show();
}
return false;
}
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb
index 54a09db5d68..243f23dc6d8 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/available.html.erb
@@ -1,16 +1,16 @@
<script>
function installPlugin(key) {
/* check terms & conditions */
- var tc=$('tc-' + key);
- if (tc!=null && !tc.checked) {
+ var tc=$j('#tc-' + key);
+ if (tc!=null && !tc.prop('checked')) {
alert('Please accept the Terms and Conditions');
return false;
}
- $('install-form-' + key).submit();
+ $j('#install-form-' + key).submit();
- var button=$('submit-' + key);
- button.disable();
- button.writeAttribute('value', 'Installing');
+ var button=$j('#submit-' + key);
+ button.prop('disabled','true');
+ button.attr('value', 'Installing');
return false;
}
</script>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb
index de67cfb9d70..f7a83dc3a88 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/updatecenter/updates.html.erb
@@ -1,9 +1,9 @@
<script>
function upgradePlugin(key) {
- $('upgrade-form-' + key).submit();
- var button=$('upgrade-submit-' + key);
- button.disable();
- button.writeAttribute('value', 'Upgrading');
+ $j('#upgrade-form-' + key).submit();
+ var button=$j('#upgrade-submit-' + key);
+ button.prop('disabled','true');
+ button.attr('value', 'Upgrading');
return false;
}
</script>