Commit c6fc1595 authored by Romain Courteaud's avatar Romain Courteaud

erp5_*: drop deprecated type="text/javascript" attribute

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type
parent b523913c
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
<tal:block metal:use-macro="here/wizard_main_template/macros/master"> <tal:block metal:use-macro="here/wizard_main_template/macros/master">
<tal:block metal:fill-slot="main"> <tal:block metal:fill-slot="main">
<script type="text/javascript" <script language="javascript"
language="javascript"
tal:content="here/ConfiguratorTool_generateJavaScript"/> tal:content="here/ConfiguratorTool_generateJavaScript"/>
<div class="dialog_box"> <div class="dialog_box">
......
...@@ -45,7 +45,7 @@ IDEAS: ...@@ -45,7 +45,7 @@ IDEAS:
<link tal:attributes="href css" type="text/css" rel="stylesheet" /> <link tal:attributes="href css" type="text/css" rel="stylesheet" />
</tal:block> </tal:block>
<tal:block tal:repeat="js python: js_list"> <tal:block tal:repeat="js python: js_list">
<script tal:attributes="src js" type="text/javascript"></script> <script tal:attributes="src js"></script>
</tal:block> </tal:block>
<link rel="icon" tal:attributes="href string:${portal_path}/favicon.ico" type="image/x-icon" /> <link rel="icon" tal:attributes="href string:${portal_path}/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" tal:attributes="href string:${portal_path}/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" tal:attributes="href string:${portal_path}/favicon.ico" type="image/x-icon" />
......
<script type="text/javascript" src="jquery/core/jquery.js"></script> <script src="jquery/core/jquery.js"></script>
<script type="text/javascript" src="jquery/plugin/sheet/jquery.sheet.js"></script> <script src="jquery/plugin/sheet/jquery.sheet.js"></script>
<script type="text/javascript" src="jquery/plugin/mbmenu/mbMenu.min.js"></script> <script src="jquery/plugin/mbmenu/mbMenu.min.js"></script>
<script type="text/javascript" src="jquery/ui/js/jquery-ui.js"></script> <script src="jquery/ui/js/jquery-ui.js"></script>
<script type="text/javascript" src="jquery/plugin/jqchart/jgcharts.min.js"></script> <script src="jquery/plugin/jqchart/jgcharts.min.js"></script>
<script type="text/javascript" src="jquery/plugin/colorpicker/jquery.colorPicker.min.js"></script> <script src="jquery/plugin/colorpicker/jquery.colorPicker.min.js"></script>
<script type="text/javascript" src="jquery/plugin/elastic/jquery.elastic.min.js"></script> <script src="jquery/plugin/elastic/jquery.elastic.min.js"></script>
<script type="text/javascript"> <script>
$("button.save").click(function(event){ $("button.save").click(function(event){
source = $.sheet.instance[0].getSource(true); source = $.sheet.instance[0].getSource(true);
$("input#my_text_content").attr("value", source) $("input#my_text_content").attr("value", source)
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</fieldset> </fieldset>
<script type="text/javascript" tal:content="string: <script tal:content="string:
// preload action icons // preload action icons
if (document.images) { if (document.images) {
clone_icon = new Image(); clone_icon = new Image();
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
tal:content="python:here.Base_getFormViewDialogActionButtonTitle(form)">Do Action</span> tal:content="python:here.Base_getFormViewDialogActionButtonTitle(form)">Do Action</span>
</button> </button>
</div> </div>
<script type="text/javascript" <script
tal:define="message python:context.Base_translateString('This dialog has already been submitted. Do you want to submit again ?').replace('\\', '\\\\').replace('\'', '\\\'')" tal:define="message python:context.Base_translateString('This dialog has already been submitted. Do you want to submit again ?').replace('\\', '\\\\').replace('\'', '\\\'')"
tal:content="structure string:installDoubleSubmitDialogPrevention('$message');"> tal:content="structure string:installDoubleSubmitDialogPrevention('$message');">
</script> </script>
......
...@@ -207,7 +207,7 @@ div.listbox_dataline:hover { ...@@ -207,7 +207,7 @@ div.listbox_dataline:hover {
</style> </style>
</head> </head>
<body onload="toggle_all()"> <body onload="toggle_all()">
<script type="text/javascript"><!-- <script><!--
function toggle_all() { function toggle_all() {
my_elements = document.getElementsByName("toggleable"); my_elements = document.getElementsByName("toggleable");
for(i=0; i<my_elements.length; i++) { for(i=0; i<my_elements.length; i++) {
...@@ -292,4 +292,4 @@ div.listbox_dataline:hover { ...@@ -292,4 +292,4 @@ div.listbox_dataline:hover {
</tal:block> </tal:block>
</body> </body>
</html> </html>
</tal:block> </tal:block>
\ No newline at end of file
...@@ -80,7 +80,6 @@ ...@@ -80,7 +80,6 @@
><script ><script
tal:define="dummy python: known.add(js)" tal:define="dummy python: known.add(js)"
tal:attributes="src js" tal:attributes="src js"
type="text/javascript"
></script></tal:block></tal:block> ></script></tal:block></tal:block>
</tal:block> </tal:block>
<tal:block metal:define-macro="http_definitions"> <tal:block metal:define-macro="http_definitions">
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</div> </div>
</tal:block> </tal:block>
</fieldset> </fieldset>
<script type="text/javascript">setFocus()</script> <script>setFocus()</script>
<p i18n:translate="" i18n:domain="ui">Having trouble logging in? Make sure to enable cookies in your web browser.</p> <p i18n:translate="" i18n:domain="ui">Having trouble logging in? Make sure to enable cookies in your web browser.</p>
<p i18n:translate="" i18n:domain="ui">Do not forget to logout or exit your browser when you are done.</p> <p i18n:translate="" i18n:domain="ui">Do not forget to logout or exit your browser when you are done.</p>
</div> </div>
......
...@@ -25,7 +25,7 @@ moving and resizing ...@@ -25,7 +25,7 @@ moving and resizing
block_string = ','.join(['"%s"' % block.name for block in planning.content if \ block_string = ','.join(['"%s"' % block.name for block in planning.content if \
not context.PlanningBox_isFrozenBlock(block=block)]) not context.PlanningBox_isFrozenBlock(block=block)])
return '<script type="text/javascript">SET_DHTML(%s,' \ return '<script>SET_DHTML(%s,' \
'"top"+CURSOR_N_RESIZE+VERTICAL, ' \ '"top"+CURSOR_N_RESIZE+VERTICAL, ' \
'"right"+CURSOR_E_RESIZE+HORIZONTAL, ' \ '"right"+CURSOR_E_RESIZE+HORIZONTAL, ' \
'"bottom"+CURSOR_S_RESIZE+VERTICAL, ' \ '"bottom"+CURSOR_S_RESIZE+VERTICAL, ' \
......
...@@ -72,7 +72,7 @@ DEPRECATION: ...@@ -72,7 +72,7 @@ DEPRECATION:
<div id="information_area" class="information_area" i18n:translate="" i18n:domain="ui"> <div id="information_area" class="information_area" i18n:translate="" i18n:domain="ui">
Input data has errors. Please look at the error messages below. Input data has errors. Please look at the error messages below.
</div> </div>
<script type="text/javascript">changed = true;</script> <script>changed = true;</script>
</tal:block> </tal:block>
</div> </div>
<div id="master" class="master"> <div id="master" class="master">
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<tal:block metal:use-macro="here/context_box_render/macros/master" /> <tal:block metal:use-macro="here/context_box_render/macros/master" />
</tal:block> </tal:block>
<tal:block metal:fill-slot="main"> <tal:block metal:fill-slot="main">
<script type="text/javascript" <script
tal:condition="portal/portal_preferences/getPreferredHtmlStyleUnsavedFormWarning" tal:condition="portal/portal_preferences/getPreferredHtmlStyleUnsavedFormWarning"
tal:define="message python:context.Base_translateString('You have unsaved changes').replace('\\', '\\\\').replace('\'', '\\\'')" tal:define="message python:context.Base_translateString('You have unsaved changes').replace('\\', '\\\\').replace('\'', '\\\'')"
tal:content="structure string:installUnsavedChangesWarning('$message');"> tal:content="structure string:installUnsavedChangesWarning('$message');">
...@@ -76,4 +76,4 @@ ...@@ -76,4 +76,4 @@
</tal:block> </tal:block>
</tal:block> </tal:block>
</tal:block> </tal:block>
</tal:block> </tal:block>
\ No newline at end of file
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