Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
e6886e8a
Commit
e6886e8a
authored
Dec 21, 2012
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_safeimage: Generic URL added
parent
ca4129ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/js/form.js.xml
...inTemplateItem/portal_skins/erp5_safeimage/js/form.js.xml
+7
-8
bt5/erp5_safeimage/bt/revision
bt5/erp5_safeimage/bt/revision
+1
-1
No files found.
bt5/erp5_safeimage/SkinTemplateItem/portal_skins/erp5_safeimage/js/form.js.xml
View file @
e6886e8a
...
@@ -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>
ts5
5132689.1
1
</string>
</value>
<value>
<string>
ts5
6103844.3
1
</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>
30
57
</int>
</value>
<value>
<int>
30
48
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_safeimage/bt/revision
View file @
e6886e8a
11
12
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment