From 4396bb0cd1bd2d3ac6943224524b1f5a4b477d30 Mon Sep 17 00:00:00 2001 From: ausiv4 Date: Tue, 28 Jul 2009 17:59:43 +0000 Subject: In this update we use jsPacker.pl to combine and compress javascript files. Instead of sending 6 javascript files totaling about 50KB, we now send 1 file totaling 21.1KB. After modifying any javascript files, run build-pack.sh to update srp.min.js. The login.html and register.html templates have been changed to send the one packed file. The file srp.js was modified so that it would pack properly. Necessary files from the perl version of packer are included, but they shouldn't be included on production web servers. The packer files are released under the LGPL. --- javascript/srp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'javascript/srp.js') diff --git a/javascript/srp.js b/javascript/srp.js index 0eff0ad..8a97e1d 100644 --- a/javascript/srp.js +++ b/javascript/srp.js @@ -32,7 +32,7 @@ function SRP(username, password, ser, base_url) { return str; } - } + }; function ajaxRequest(full_url, params, callback) { if(!xhr) @@ -63,7 +63,7 @@ function SRP(username, password, ser, base_url) { that.error_message("Ajax failed."); } - } + }; this.register = function() { @@ -186,7 +186,7 @@ function SRP(username, password, ser, base_url) that.error_message("User has not been authenticated."); else return K; - } + }; this.success = function() { alert("Authentication successful."); -- cgit v1.2.3