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
Xueyun Qian
erp5
Commits
f2fcea27
Commit
f2fcea27
authored
Feb 28, 2012
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create details tag if do not exit.
parent
e2689b6a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
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
+10
-5
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 @
f2fcea27
...
...
@@ -358,12 +358,12 @@ $(document).ready(function(){\n
title: "Add new slide",\n
autoOpen: false,\n
draggable: false,\n
resizable:
fals
e,\n
resizable:
tru
e,\n
modal: true,\n
autoResize: true,\n
show: "clip",\n
hide: "clip",\n
width: "
470px
",\n
width: "
50%
",\n
height: "auto",\n
position: \'center\'\n
});\n
...
...
@@ -409,6 +409,7 @@ $(document).ready(function(){\n
var tmpSlide = slide.clone();\n
$("h1:first, img:first, details, test", tmpSlide).remove();\n
$(\'textarea[name="field_your_slide_content"]\', editSlideIframeContents).val(tmpSlide.html().trim());\n
if ($(\'details\', slide).length > 0)\n
$(\'textarea[name="field_your_text_content"]\', editSlideIframeContents).val($(\'details\', slide).html().trim());\n
\n
var hasTest = $(\'test\', slide).length > 0;\n
...
...
@@ -427,6 +428,10 @@ $(document).ready(function(){\n
titleContainer.html(newTitle);\n
var className = $(\'select[name="field_your_slide_type"]\', editSlideIframeContents).val();\n
slide.attr(\'class\', className.toLowerCase());\n
if ($(\'details\', slide).length === 0) {\n
var details = document.createElement("details");\n
slide.append($(details));\n
}\n
$(\'details\', slide).html($(\'textarea[name="field_your_text_content"]\', editSlideIframeContents).val().trim());\n
$(\'details\', slide).attr("open", "true")\n
$("> :not(h1:first, img:first, details, test)", slide).remove();\n
...
...
@@ -484,12 +489,12 @@ $(document).ready(function(){\n
title: "Edit slide",\n
autoOpen: false,\n
draggable: false,\n
resizable:
fals
e,\n
resizable:
tru
e,\n
modal: true,\n
autoResize: true,\n
show: "clip",\n
hide: "clip",\n
width: "
470px
",\n
width: "
50%
",\n
height: "auto",\n
position: \'center\'\n
});\n
...
...
bt5/erp5_run_my_doc/bt/revision
View file @
f2fcea27
45
\ No newline at end of file
46
\ 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