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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yoji Takeuchi
erp5
Commits
c054c5a9
Commit
c054c5a9
authored
Feb 06, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not produce a full html document if use do not want it.
parent
7833ff55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/test_editor.js.xml
...plateItem/portal_skins/erp5_run_my_doc/test_editor.js.xml
+8
-9
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/test_editor.js.xml
View file @
c054c5a9
...
...
@@ -131,8 +131,7 @@ function updateTextContent(){\n
testBody.append(lineToAdd);\n
}\n
}\n
testPageHTML.getElementsByTagName(\'body\')[0].innerHTML = indent(testPageHTML.getElementsByTagName(\'body\')[0].cloneNode(true), 2);\n
$(textContent).text("
<!DOCTYPE html>
\\n
<
" + "html" + ">\\n" + $(testPageHTML).html() + "\\n
<
" + "/html" + ">");\n
$(textContent).text($(indent($(testPageHTML)[0], 2))[0].innerHTML);\n
}\n
\n
//Add an edit button and a remove button to a line\n
...
...
@@ -142,21 +141,21 @@ function prependEditButtons(element){\n
\n
$(document).ready(function(){\n
$(function() {\n
//Extract slide list\n
//
Extract slide list\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
\n
testPageHTML = document.createElement(\'content\');\n
$(testPageHTML).append($(\'section\', tmp));\n
\n
$(\'#test_table > thead\').append($(\'test thead > tr > th\', testPageHTML).attr(\'colspan\',5).parent());\n
slideList = $(\'section\', testPageHTML);\n
\n
var n = slideList.length;\n
var body = $(\'#test_table > tbody\');\n
\n
//Prepare chapters, and buttons to add instruction for each chapter\n
//
Prepare chapters, and buttons to add instruction for each chapter\n
for(var i = 0; i
< n
;
i++){\n
var
slide =
slideList.eq(i);\n
body.append($(\'<tr
>
\').append($(\'
<th>
\').attr(\'colspan\',5).html($(\'h1:first\',slide).html())));\n
...
...
bt5/erp5_run_my_doc/bt/revision
View file @
c054c5a9
2
6
2
7
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