trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r849374 - in /websites/staging/trafficserver/trunk: cgi-bin/ content/ content/tools/via.html
Date Mon, 04 Feb 2013 17:28:48 GMT
Author: buildbot
Date: Mon Feb  4 17:28:47 2013
New Revision: 849374

Log:
Staging update by buildbot for trafficserver

Modified:
    websites/staging/trafficserver/trunk/cgi-bin/   (props changed)
    websites/staging/trafficserver/trunk/content/   (props changed)
    websites/staging/trafficserver/trunk/content/tools/via.html

Propchange: websites/staging/trafficserver/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Feb  4 17:28:47 2013
@@ -1 +1 @@
-1442189
+1442192

Propchange: websites/staging/trafficserver/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Feb  4 17:28:47 2013
@@ -1 +1 @@
-1442189
+1442192

Modified: websites/staging/trafficserver/trunk/content/tools/via.html
==============================================================================
--- websites/staging/trafficserver/trunk/content/tools/via.html (original)
+++ websites/staging/trafficserver/trunk/content/tools/via.html Mon Feb  4 17:28:47 2013
@@ -133,13 +133,19 @@ function showVia(form, value) {
         output = "Invalid VIA data, must be 24 or 6 characters long.";
     }
     via.innerHTML = output;
+    if (form) {
+        window.location.hash = escape(text);
+    }
     return false;
 }
 
 function checkQuery() {
-    var qs = window.location.search.substr(1);
-    if (qs && qs.length > 5) {
-        showVia(false, qs);
+    var url = location.href;
+    if (url.indexOf("#") > 0) {
+        var qs = url.substring(url.indexOf("#")+1);
+        if (qs && qs.length > 5) {
+            showVia(false, qs);
+        }
     }
 }
 </script>



Mime
View raw message