|
From: <ma...@us...> - 2013-02-10 20:32:09
|
Revision: 1464
http://openautomation.svn.sourceforge.net/openautomation/?rev=1464&view=rev
Author: mayerch
Date: 2013-02-10 20:32:02 +0000 (Sun, 10 Feb 2013)
Log Message:
-----------
Little bug fix for the cases when an hash tag is in the URL
Modified Paths:
--------------
CometVisu/trunk/visu/lib/compatibility.js
Modified: CometVisu/trunk/visu/lib/compatibility.js
===================================================================
--- CometVisu/trunk/visu/lib/compatibility.js 2013-02-10 20:19:34 UTC (rev 1463)
+++ CometVisu/trunk/visu/lib/compatibility.js 2013-02-10 20:32:02 UTC (rev 1464)
@@ -165,13 +165,14 @@
$.extend({
getUrlVars: function(){
var vars = [], hash;
- var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('#')[0].split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
+ console.log( vars );
return vars;
},
getUrlVar: function(name){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|