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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
f367bee1
Commit
f367bee1
authored
Feb 06, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore edit trigger on script startup and accept empty section class.
parent
c054c5a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
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
+7
-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/slideshow_editor.js.xml
View file @
f367bee1
...
@@ -314,11 +314,17 @@ $(document).ready(function(){\n
...
@@ -314,11 +314,17 @@ $(document).ready(function(){\n
\n
\n
editSlideIframe.load(function() {\n
editSlideIframe.load(function() {\n
function initFrame(){ \n
function initFrame(){ \n
if (slideNumber == null) {\n
// slideNumber should be defined before try to edit.\n
return false;\n
}\n
var slide = $(\'section:eq(\'+slideNumber+\')\', slideList);\n
var slide = $(\'section:eq(\'+slideNumber+\')\', slideList);\n
changeImagesURLAttrib($(\'> img:first\', slide), \'timestamp\', new Date().getTime()); //This updates the image displayed\n
changeImagesURLAttrib($(\'> img:first\', slide), \'timestamp\', new Date().getTime()); //This updates the image displayed\n
editSlideIframeContents = editSlideIframe.contents();\n
editSlideIframeContents = editSlideIframe.contents();\n
$(\'input[name="field_your_chapter_title"]\', editSlideIframeContents).val($(\'h1:first\', slide).html().trim());\n
$(\'input[name="field_your_chapter_title"]\', editSlideIframeContents).val($(\'h1:first\', slide).html().trim());\n
if (slide.attr(\'class\') != null) {\n
$(\'select[name="field_your_slide_type"]\', editSlideIframeContents).val(slide.attr(\'class\').replace(/^\\w/, function($0) { return $0.toUpperCase(); }));\n
$(\'select[name="field_your_slide_type"]\', editSlideIframeContents).val(slide.attr(\'class\').replace(/^\\w/, function($0) { return $0.toUpperCase(); }));\n
};\n
var tmpSlide = slide.clone();\n
var tmpSlide = slide.clone();\n
$("h1:first, img:first, details, test", tmpSlide).remove();\n
$("h1:first, img:first, details, test", tmpSlide).remove();\n
$(\'textarea[name="field_your_slide_content"]\', editSlideIframeContents).val(tmpSlide.html().trim());\n
$(\'textarea[name="field_your_slide_content"]\', editSlideIframeContents).val(tmpSlide.html().trim());\n
...
...
bt5/erp5_run_my_doc/bt/revision
View file @
f367bee1
2
7
2
8
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