Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleanup whitespace

  • Loading branch information...
commit a67614a7bb453e4a51ab3f68bc2b2bd4d7e34e82 1 parent da01849
@abh authored
Showing with 37 additions and 41 deletions.
  1. +37 −41 docs/shared/static/js/ntppool.js
View
78 docs/shared/static/js/ntppool.js
@@ -5,47 +5,43 @@ if (!NP) var NP = {};
(function() {
- "use strict";
-
- NP.netspeed_updated = function(server_id, data, status) {
- $('#netspeed_' + server_id ).fadeIn(400);
- $('#netspeed_' + server_id ).html(data.netspeed);
- $('#zones_' + server_id ).html(data.zones);
- };
-
- NP.update_netspeed = function(server_id, netspeed) {
-
- var pars = { "netspeed": netspeed, "server": server_id };
-
- $('#netspeed_' + server_id ).fadeOut(50);
-
- jQuery.getJSON( '/manage/server/update/netspeed', pars,
- function(data, textStatus) {
- NP.netspeed_updated(server_id, data);
- }
+ "use strict";
+
+ NP.netspeed_updated = function(server_id, data) {
+ $('#netspeed_' + server_id ).fadeIn(400);
+ $('#netspeed_' + server_id ).html(data.netspeed);
+ $('#zones_' + server_id ).html(data.zones);
+ };
+
+ NP.update_netspeed = function(server_id, netspeed) {
+ var pars = { "netspeed": netspeed, "server": server_id };
+ $('#netspeed_' + server_id ).fadeOut(50);
+ jQuery.getJSON( '/manage/server/update/netspeed', pars,
+ function(data, textStatus) {
+ NP.netspeed_updated(server_id, data);
+ }
+ );
+ };
+
+ $(document).ready(function () {
+
+ $("#busy").ajaxStart(function(){
+ $(this).show(70);
+ })
+ .ajaxStop(function(){
+ $(this).hide(70);
+ });
+
+ $("#profile_link a.profile_link_change")
+ .live('click',
+ function(event) {
+ event.preventDefault();
+ $.post(this.href, {},
+ function(response) {
+ $('#profile_link').html(response);
+ }
);
- };
-
-
-$(document).ready(function () {
-
- $("#busy")
- .ajaxStart(function(){
- $(this).show(70);
- })
- .ajaxStop(function(){
- $(this).hide(70);
+ }
+ );
});
-
- $("#profile_link a.profile_link_change")
- .live('click',
- function(event) {
- event.preventDefault();
- $.post(this.href, {},
- function(response) {
- $('#profile_link').html(response);
- });
- }
- );
-});
}());
Please sign in to comment.
Something went wrong with that request. Please try again.