Commit 4a437780 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 @@
<tal:block metal:use-macro="here/wizard_main_template/macros/master">
<tal:block metal:fill-slot="main">
<script type="text/javascript"
language="javascript"
<script language="javascript"
tal:content="here/ConfiguratorTool_generateJavaScript"/>
<div class="dialog_box">
......
......@@ -45,7 +45,7 @@ IDEAS:
<link tal:attributes="href css" type="text/css" rel="stylesheet" />
</tal:block>
<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>
<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" />
......
<script type="text/javascript" src="jquery/core/jquery.js"></script>
<script type="text/javascript" src="jquery/plugin/sheet/jquery.sheet.js"></script>
<script type="text/javascript" src="jquery/plugin/mbmenu/mbMenu.min.js"></script>
<script type="text/javascript" src="jquery/ui/js/jquery-ui.js"></script>
<script type="text/javascript" src="jquery/plugin/jqchart/jgcharts.min.js"></script>
<script type="text/javascript" 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/core/jquery.js"></script>
<script src="jquery/plugin/sheet/jquery.sheet.js"></script>
<script src="jquery/plugin/mbmenu/mbMenu.min.js"></script>
<script src="jquery/ui/js/jquery-ui.js"></script>
<script src="jquery/plugin/jqchart/jgcharts.min.js"></script>
<script src="jquery/plugin/colorpicker/jquery.colorPicker.min.js"></script>
<script src="jquery/plugin/elastic/jquery.elastic.min.js"></script>
<script type="text/javascript">
<script>
$("button.save").click(function(event){
source = $.sheet.instance[0].getSource(true);
$("input#my_text_content").attr("value", source)
......
......@@ -38,7 +38,7 @@
tal:content="python:here.Base_getFormViewDialogActionButtonTitle(form)">Do Action</span>
</button>
</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:content="structure string:installDoubleSubmitDialogPrevention('$message');">
</script>
......
......@@ -207,7 +207,7 @@ div.listbox_dataline:hover {
</style>
</head>
<body onload="toggle_all()">
<script type="text/javascript"><!--
<script><!--
function toggle_all() {
my_elements = document.getElementsByName("toggleable");
for(i=0; i<my_elements.length; i++) {
......
......@@ -80,7 +80,6 @@
><script
tal:define="dummy python: known.add(js)"
tal:attributes="src js"
type="text/javascript"
></script></tal:block></tal:block>
</tal:block>
<tal:block metal:define-macro="http_definitions">
......
......@@ -85,7 +85,7 @@
</div>
</tal:block>
</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">Do not forget to logout or exit your browser when you are done.</p>
</div>
......
......@@ -25,7 +25,7 @@ moving and resizing
block_string = ','.join(['"%s"' % block.name for block in planning.content if \
not context.PlanningBox_isFrozenBlock(block=block)])
return '<script type="text/javascript">SET_DHTML(%s,' \
return '<script>SET_DHTML(%s,' \
'"top"+CURSOR_N_RESIZE+VERTICAL, ' \
'"right"+CURSOR_E_RESIZE+HORIZONTAL, ' \
'"bottom"+CURSOR_S_RESIZE+VERTICAL, ' \
......
......@@ -72,7 +72,7 @@ DEPRECATION:
<div id="information_area" class="information_area" i18n:translate="" i18n:domain="ui">
Input data has errors. Please look at the error messages below.
</div>
<script type="text/javascript">changed = true;</script>
<script>changed = true;</script>
</tal:block>
</div>
<div id="master" class="master">
......
......@@ -18,7 +18,7 @@
<tal:block metal:use-macro="here/context_box_render/macros/master" />
</tal:block>
<tal:block metal:fill-slot="main">
<script type="text/javascript"
<script
tal:condition="portal/portal_preferences/getPreferredHtmlStyleUnsavedFormWarning"
tal:define="message python:context.Base_translateString('You have unsaved changes').replace('\\', '\\\\').replace('\'', '\\\'')"
tal:content="structure string:installUnsavedChangesWarning('$message');">
......
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