Commit bbfa73d8 authored by Lingnan Wu's avatar Lingnan Wu

remove the id=precontent of the original page ,and change all the getcontent...

remove the id=precontent of the original page ,and change all the getcontent function aim to the 'list' div and use innerHTML but not textcontent
parent cb67a113
......@@ -85,7 +85,6 @@
src="lib/presentation/slideshow_editor.js"></script>
<script language="javascript"
src="lib/presentation/erp5_run_my_docs.js"></script>
<div id="list"></div>
<div id="add_slide">
<section id="add_slide_button"> Add Slide </section>
......@@ -96,7 +95,7 @@
</div>
<p class="clear"></p>
<div class="field hidden" id=precontent
<div class="field hidden"
title="Content of the web page">
<div class="input"><textarea class="hidden" rows="40" cols="120" name="field_my_text_content" >
......
......@@ -175,7 +175,7 @@
ext:'ppt',
frameid:'svg_edit_frame',
getContent: function () {
return document.getElementById("precontent").textContent;
return document.getElementById("list").innerHTML;
},
setContent: function (content) {
......
<head>
<meta content="ERP5 - Copyright (C) 2001 - 2008. All rights reserved." name="generator">
<meta content="Add a new Slide" name="description">
<meta content="" name="keywords">
<meta content="index, follow" name="robots">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="text/javascript" http-equiv="Content-Script-Type">
<meta content="text/css" http-equiv="Content-Style-Type">
<title>Add a new Slide | Nexedi ERP5</title>
<link href="erp5_knowledge_box.css" rel="stylesheet" type="text/css">
<link href="erp5.css" rel="stylesheet" type="text/css">
<link href="erp5_listbox.css" rel="stylesheet" type="text/css">
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery-ui.js" type="text/javascript"></script>
<script src="erp5.js" type="text/javascript"></script>
<script src="erp5_knowledge_box.js" type="text/javascript"></script>
<script src="erp5_xhtml_appearance.js" type="text/javascript"></script>
<link href="https://www.tiolive.com/nexedi/favicon.ico" type="image/x-icon" rel="icon">
<link href="https://www.tiolive.com/nexedi/favicon.ico" type="image/x-icon" rel="shortcut icon">
<!-- this is a placeholder for different extensions to head which could be required by web themes -->
</head>
<body>
<form enctype="multipart/form-data" method="post" action="https://www.tiolive.com/nexedi" onsubmit="changed=false; return true" class="main_form" id="main_form">
<fieldset class="hidden_fieldset" id="hidden_fieldset">
......
......@@ -10,7 +10,7 @@
//get the body content from the main page
function getContent(){
return window.opener.document.getElementById("precontent").textContent;
return window.opener.document.getElementById("list").innerHTML;
}
</script>
<title>How to Manage Support Requests</title>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment