2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

Fixing SVG copy/paste

git-svn-id: https://svn.fhem.de/fhem/trunk@2001 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-10-22 15:14:34 +00:00
parent a5277ab2c0
commit 3a81a8dff9

View File

@ -10,7 +10,7 @@ function
compressPoints(pointList)
{
var i, x, y, lx = -1, ly, ret = "";
var pl_arr = pointList.split(/[, ]/);
var pl_arr = pointList.replace(/^ */,'').split(/[, ]/);
for(i = 0; i < pl_arr.length; i +=2) {
x = parseInt(pl_arr[i]);
y = parseInt(pl_arr[i+1]);
@ -48,12 +48,14 @@ get_cookie()
if(c == null)
return "";
var results = c.match('fhemweb=(.*?)(;|$)' );
console.info("getcookie:"+results);
return (results ? unescape(results[1]) : "");
}
function
set_cookie(value)
{
console.info("setcookie:"+value);
parent.document.cookie="fhemweb="+escape(value);
}