Commit e6886e8a authored by Sebastien Robin's avatar Sebastien Robin

erp5_safeimage: Generic URL added

parent ca4129ba
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts55132689.11</string> </value> <value> <string>ts56103844.31</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
(function($) {\n (function($) {\n
\n \n
$.getJSON(\n $.getJSON(\n
\'http://localhost:12001/erp5/portal_skins/erp5_safeimage/ERP5Site_getTileImageTransformMetadataList\', \n \'http://\'+window.location.host+\'/erp5/ERP5Site_getTileImageTransformMetadataList\', \n
function(data){\n function(data){\n
for (var i = 0; i < data["image_list"].length; i ++ ) {\n for (var i = 0; i < data["image_list"].length; i ++ ) {\n
\n \n
...@@ -72,10 +72,10 @@ ...@@ -72,10 +72,10 @@
\n \n
displayData: function(id){\n displayData: function(id){\n
var zoomify_url, zoomify_width, zoomify_height = null;\n var zoomify_url, zoomify_width, zoomify_height = null;\n
zoomify_url = "http://localhost:12001/erp5/image_module/" + id + "/";\n zoomify_url = "http://"+window.location.host+"/erp5/image_module/" + id + "/";\n
//XXX look at the xml definition inside image folder\n //XXX look at the xml definition inside image folder\n
var zoomify_data = $.getJSON(\n var zoomify_data = $.getJSON(\n
\t\t\t\t"http://localhost:12001/erp5/image_module/" + id + "/TileImage_getMetadataAsJSON",\n \t\t\t\t"http://"+window.location.host+"/erp5/image_module/" + id + "/TileImage_getMetadataAsJSON",\n
\t\t\t\tfunction(data){\n \t\t\t\tfunction(data){\n
\t\t\t\t\twidth=data["sizes"][0]["width"];\n \t\t\t\t\twidth=data["sizes"][0]["width"];\n
\t\t\t\t\theight=data["sizes"][0]["height"];\n \t\t\t\t\theight=data["sizes"][0]["height"];\n
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
\n \n
var transforms = function(width,height){\n var transforms = function(width,height){\n
$.getJSON(\n $.getJSON(\n
\'http://localhost:12001/erp5/image_module/\'+id+\'/TileImageTransformed_getTransform\',\n \'http://\'+window.location.host+\'/erp5/image_module/\'+id+\'/TileImageTransformed_getTransform\',\n
function(data){\n function(data){\n
pass(width,height,data);\n pass(width,height,data);\n
}\n }\n
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
\tvar pass = function(zoomify_width,zoomify_height,data){\n \tvar pass = function(zoomify_width,zoomify_height,data){\n
\t\t\t\n \t\t\t\n
\t\t\t\t$(function() {\n \t\t\t\t$(function() {\n
\t\n
\t\t\t SafeImage.loadOpenLayerZoomedImage(zoomify_width,zoomify_height, zoomify_url,data);\n \t\t\t SafeImage.loadOpenLayerZoomedImage(zoomify_width,zoomify_height, zoomify_url,data);\n
if (document.location.search != ""){\n if (document.location.search != ""){\n
SafeImage.map.zoomTo(Number(document.location.search.split("")[6]));\n SafeImage.map.zoomTo(Number(document.location.search.split("")[6]));\n
...@@ -137,7 +136,7 @@ $("#main").form();\n ...@@ -137,7 +136,7 @@ $("#main").form();\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>3057</int> </value> <value> <int>3048</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
11 12
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment