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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
374be4c2
Commit
374be4c2
authored
Feb 07, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not add extra HTML tags when it is not needed.
parent
e975c723
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/slideshow_editor.js.xml
...Item/portal_skins/erp5_run_my_doc/slideshow_editor.js.xml
+1
-3
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/slideshow_editor.js.xml
View file @
374be4c2
...
...
@@ -125,7 +125,7 @@ function updateTextContent(){\n
body.append($(\'#list > section\').clone());\n
changeImagesURLAttrib(images,\'display\',\'xsmall\');\n
body[0].innerHTML = indent(body[0].cloneNode(true), 2);\n
$(textContent).text(
"
<!DOCTYPE html>
\\n
<
" + "html" + ">\\n" + $(testPageHTML).html() + "\\n
<
" + "/html" + ">"
);\n
$(textContent).text(
body[0].innerHTML
);\n
}\n
\n
//Change/add a GET attribute in the src url of an image (located after the question mark in the url)\n
...
...
@@ -200,11 +200,9 @@ $(document).ready(function(){\n
textContent = document.getElementsByName(\'field_my_text_content\')[0];\n
var tmp = document.createElement(\'tmp\');\n
testPageHTML = document.createElement(\'html\');\n
testPageHTML.appendChild(document.createElement(\'head\'));\n
testPageHTML.appendChild(document.createElement(\'body\'));\n
$(tmp).html($(textContent).text());\n
$(\'body\',testPageHTML).append($(\'section\', tmp));\n
$(\'head\',testPageHTML).append($(\'> :not(section)\', tmp));\n
body = $(\'section\', testPageHTML);\n
changeImagesURLAttrib($(\'> img\', body),\'display\',\'xsmall\');\n
slideList = $(\'#list\');\n
...
...
bt5/erp5_run_my_doc/bt/revision
View file @
374be4c2
36
\ No newline at end of file
37
\ 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