Mercurial > hg > digilib-old
changeset 958:2a2e8c039c29
changed regions parameter separator to the same as for marks
author | hertzhaft |
---|---|
date | Tue, 24 Jan 2012 16:12:42 +0100 |
parents | c4bd6f984aee |
children | f197e7760154 |
files | webapp/src/main/webapp/jquery/jquery.digilib.regions.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Fri Jan 13 14:07:57 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Tue Jan 24 16:12:42 2012 +0100 @@ -376,10 +376,10 @@ var rg = data.settings.rg; if (rg == null) return; var regions = data.regions; - var rs = rg.split(";"); + var rs = rg.split(","); for (var i = 0; i < rs.length; i++) { var r = rs[i]; - var pos = r.split(",", 4); + var pos = r.split("/", 4); var rect = geom.rectangle(pos[0], pos[1], pos[2], pos[3]); regions.push(rect); } @@ -396,14 +396,14 @@ for (var i = 0; i < regions.length; i++) { region = regions[i]; if (i) { - rg += ';'; + rg += ','; } rg += [ fn.cropFloatStr(region.x), fn.cropFloatStr(region.y), fn.cropFloatStr(region.width), fn.cropFloatStr(region.height) - ].join(','); + ].join('/'); } data.settings.rg = rg; };