Commit adb0ef03 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use relative path for embedded images/files (same as r.27644).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27773 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b347960
......@@ -184,7 +184,7 @@ oListManager.AddFile = function( fileName, fileTitle, filePhoto, fileUrl, realUr
\tvar oRow = this.Table.insertRow(-1) ;\n
\n
\t// Build the link to view the file.\n
var sLink = \'<a href="#" onclick="OpenFile(\\\'\' + fileUrl + \'\\\');return false;">\' ;\n
var sLink = \'<a href="#" onclick="OpenFile(\\\'\' + fileName + \'\\\');return false;">\' ;\n
// Change the link if type is image since setUrl for images support more arguments\n
if (sType==\'Image\') {\n
\t sLink = \'<a href="#" onclick="OpenImage(\\\'\' + fileName + \'\\\',\\\'\\\',\\\'\\\',\\\'\' + fileTitle + \'\\\');return false;">\' ;\n
......@@ -303,7 +303,7 @@ oListManager.AddFileToAlbum = function( fileName, fileTitle, filePhoto, fileUrl,
// init sLinksPhoto\n
var sLinksPhoto=\'\' ;\n
\t// Build the link to view the file.\n
var sLink = \'<a title="link the file" href="#" onclick="OpenFile(\\\'\' + fileUrl + \'\\\');return false;">\' ;\n
var sLink = \'<a title="link the file" href="#" onclick="OpenFile(\\\'\' + fileName + \'\\\');return false;">\' ;\n
// Change the link if type is image since setUrl for images support more arguments\n
if (sType==\'Image\') {\n
\t sLink = \'<a title="link the image" href="#" onclick="OpenImage(\\\'\' + fileName + \'\\\',\\\'\\\',\\\'\\\',\\\'\' + fileTitle + \'\\\');return false;">\' ;\n
......
772
\ No newline at end of file
773
\ 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