Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Iliya Manolov
erp5
Commits
e6a7601b
Commit
e6a7601b
authored
Feb 17, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve full url detection
parent
16e39ad7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/html5_book.js.xml
...mplateItem/portal_skins/erp5_run_my_doc/html5_book.js.xml
+6
-1
bt5/erp5_run_my_doc/bt/revision
bt5/erp5_run_my_doc/bt/revision
+1
-1
No files found.
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/html5_book.js.xml
View file @
e6a7601b
...
@@ -49,6 +49,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
...
@@ -49,6 +49,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
*/\n
*/\n
var textContent, testPageHTML, body;\n
var textContent, testPageHTML, body;\n
\n
\n
function isUrl(s) {\n
var regexp = /(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?/\n
return regexp.test(s);\n
}\n
\n
function cleanForPrince(){\n
function cleanForPrince(){\n
var temp = $(\'iframe\', parent.document).contents().children().clone();\n
var temp = $(\'iframe\', parent.document).contents().children().clone();\n
$(\'script\', temp).remove();\n
$(\'script\', temp).remove();\n
...
@@ -227,7 +232,7 @@ function convertChapter(link, container, first, isChapter, chapterCounter, partC
...
@@ -227,7 +232,7 @@ function convertChapter(link, container, first, isChapter, chapterCounter, partC
var
img =
images[j];\n
var
img =
images[j];\n
var
div =
$(\'<div
>
\');\n
var
div =
$(\'<div
>
\');\n
var caption = $(\'
<p>
\').addClass(\'caption\');\n
var caption = $(\'
<p>
\').addClass(\'caption\');\n
if(
(/^http/).test
($(img).attr(\'src\')) == false) {\n
if(
isUrl
($(img).attr(\'src\')) == false) {\n
$(img).attr(\'src\', link + $(img).attr(\'src\'));\n
$(img).attr(\'src\', link + $(img).attr(\'src\'));\n
}\n
}\n
$(img).before(div);\n
$(img).before(div);\n
...
...
bt5/erp5_run_my_doc/bt/revision
View file @
e6a7601b
41
42
\ 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