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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
234b78d5
Commit
234b78d5
authored
Dec 20, 2011
by
Xavier Hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RunMyDoc made compatible with Zelenium Tests
parent
fdda79de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/chapter_converter.js.xml
...tem/portal_skins/erp5_run_my_doc/chapter_converter.js.xml
+2
-2
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/reviewer.js.xml
...TemplateItem/portal_skins/erp5_run_my_doc/reviewer.js.xml
+6
-7
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
-1
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
+1
-1
No files found.
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/chapter_converter.js.xml
View file @
234b78d5
...
...
@@ -49,7 +49,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
*/\n
var textContent, testPageHTML, body;\n
function cleanForPrince(){\n
var temp = $(\'iframe\',
window.top
.document).contents().children().clone();\n
var temp = $(\'iframe\',
parent
.document).contents().children().clone();\n
$(\'script\', temp).remove();\n
$(\'style, meta:not([name=author])\', temp).remove();\n
var images = $(\'img\', temp);\n
...
...
@@ -96,7 +96,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
}\n
result += chr;\n
}\n
$(\'textarea[name=field_book_text_content]\',
window.top
.document).val(\'
<html>
\\n\' + result + \'\\n
</html>
\');\n
$(\'textarea[name=field_book_text_content]\',
parent
.document).val(\'
<html>
\\n\' + result + \'\\n
</html>
\');\n
return false;\n
}\n
\n
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/reviewer.js.xml
View file @
234b78d5
...
...
@@ -119,7 +119,7 @@ function findId(object){\n
}\n
\n
function
getAuthor(){\n
return
$(\'#logged_in_as\',
window.top.
document).text().replace(\'Logged
In
as
:\',
\'\').trim();\n
return
$(\'#logged_in_as\',
document).text().replace(\'Logged
In
as
:\',
\'\').trim();\n
}\n
\n
function
validateComment(object,
clicked){\n
...
...
@@ -129,7 +129,7 @@ function validateComment(object, clicked){\n
var
color =
$(\'#review_tooltip\').css(\'background-color\');\n
//Saving\n
var
id =
findId(editedObject);\n
var
commentaryListObj =
$("textarea[name=field_my_annotation]",
window.top.
document);\n
var
commentaryListObj =
$("textarea[name=field_my_annotation]",
document);\n
var
commentaryList =
commentaryListObj.val().split(\'\\n\');\n
var
commentArray =
parseCommentLine(commentaryList[id]);\n
commentArray[0]
=
text;\n
...
...
@@ -164,7 +164,7 @@ function editComment(object, e){\n
}\n
\n
function removeLine(name, id){\n
var obj = $("textarea[name=field_" + name + "]",
window.top.
document);\n
var obj = $("textarea[name=field_" + name + "]",
document);\n
var text = obj.val().split(\'\\n\');\n
text.splice(id,1);\n
obj.val(text.join(\'\\n\'));\n
...
...
@@ -198,7 +198,7 @@ function addComment(commentArray, notSetup, e){\n
var object = $(locator, context);\n
\n
if(notSetup){\n
var commentaryListObj = $("textarea[name=field_my_annotation]",
window.top.
document);\n
var commentaryListObj = $("textarea[name=field_my_annotation]",
document);\n
var commentaryList = commentaryListObj.val();\n
if(commentaryList.trim() != \'\'){\n
commentaryList += \'\\n\';\n
...
...
@@ -335,12 +335,11 @@ $(document).ready(function(){\n
return false;\n
});\n
var cssLink = document.createElement("link");\n
cssLink.href =
window.top.
document.URL.split(\'review_module\')[0] + "reviewer.css"; \n
cssLink.href = document.URL.split(\'review_module\')[0] + "reviewer.css"; \n
cssLink.rel = "stylesheet"; \n
cssLink.type = "text/css"; \n
this.contentDocument.body.appendChild(cssLink);\n
\n
var commentaryListObj = $("textarea[name=field_my_annotation]",window.top.document);\n
var commentaryListObj = $("textarea[name=field_my_annotation]", document);\n
var commentaryList = commentaryListObj.val().split(\'\\n\');\n
var n = commentaryList.length;\n
for(var i = 0; i
< n
;
i++){\n
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/slideshow_editor.js.xml
View file @
234b78d5
...
...
@@ -197,7 +197,7 @@ function appendSlideButtons(element, index){\n
$(document).ready(function(){\n
$(function() {\n
//Extract the slides\n
textContent =
window.top.
document.getElementsByName(\'field_my_text_content\')[0];\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
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/test_editor.js.xml
View file @
234b78d5
...
...
@@ -143,7 +143,7 @@ function prependEditButtons(element){\n
$(document).ready(function(){\n
$(function() {\n
//Extract slide list\n
textContent =
window.top.
document.getElementsByName(\'field_my_text_content\')[0];\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
...
...
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