Unverified Commit 9fb6ce7c authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(code) Remove useless type on script tags

issue #6187
Showing with 25 additions and 25 deletions
+25 -25
......@@ -249,7 +249,7 @@ if ($error_collector != "") {
$smarty->assign("php_errors", "");
}
$focus = '<script type="text/javascript">';
$focus = '<script>';
$focus .= 'next_msg_dialog();';
$focus .= '</script>';
$smarty->assign('focus', $focus);
......
......@@ -116,7 +116,7 @@ setup::mainInc();
* @var string $display filled by setup::mainInc
*/
$focus = '<script type="text/javascript">';
$focus = '<script>';
$focus .= 'next_msg_dialog();';
$focus .= '</script>';
......
......@@ -10,7 +10,7 @@
value="{$currentValue|escape}"/>
<div id="autocomplete_{$pid}" class="autocomplete"></div>
<script type="text/javascript">
<script>
new Ajax.Autocompleter('{$htmlid}', 'autocomplete_{$pid}', 'autocomplete.php?type=base', { minChars: 3, frequency: 0.5 });
{if $submitButton}
$('{$htmlid}').observe(
......
......@@ -57,7 +57,7 @@
<!-- Automatic logout when session is expired -->
<script type="text/javascript">
<script>
{literal}
function logout()
{
......
......@@ -15,19 +15,19 @@
<link rel="shortcut icon" href="favicon.ico"/>
<script src="include/prototype.js" type="text/javascript"></script>
<script src="include/fusiondirectory.js" type="text/javascript"></script>
<script src="include/prototype.js"></script>
<script src="include/fusiondirectory.js"></script>
{if $usePrototype == 'true'}
<script src="include/scriptaculous.js" type="text/javascript"></script>
<script src="include/builder.js" type="text/javascript"></script>
<script src="include/effects.js" type="text/javascript"></script>
<script src="include/dragdrop.js" type="text/javascript"></script>
<script src="include/controls.js" type="text/javascript"></script>
<script src="include/pulldown.js" type="text/javascript"></script>
<script src="include/scriptaculous.js"></script>
<script src="include/builder.js"></script>
<script src="include/effects.js"></script>
<script src="include/dragdrop.js"></script>
<script src="include/controls.js"></script>
<script src="include/pulldown.js"></script>
{/if}
<script src="include/tsorter.js" type="text/javascript"></script>
<script src="include/tsorter.js"></script>
{foreach from=$js_files item=file}
<script src="{$file}" type="text/javascript"></script>
<script src="{$file}"></script>
{/foreach}
</head>
......@@ -47,7 +47,7 @@
<!-- check, if cookies are enabled -->
<p class="fusiondirectoryLoginWarning">
<script type="text/javascript">
<script>
<!--
document.cookie = "fdtest=empty;path=/";
if (document.cookie.indexOf( "fdtest=") > -1 )
......@@ -76,7 +76,7 @@
{include file={filePath file="copynotice.tpl"}}
<script type="text/javascript">
<script>
<!--
enable_keyPress = false;
focus_field("{$focusfield|escape}");
......
......@@ -45,7 +45,7 @@
{/if}
</div>
</div>
<script type="text/javascript">
<script>
focus_field('MSG_OK{$dialog.id}');
</script>
{/foreach}
......
......@@ -128,7 +128,7 @@
{include file={filePath file="copynotice.tpl"}}
<!-- Place cursor in email field -->
<script type="text/javascript">
<script>
<!-- // First input field on page
focus_field('error_accept','login','directory','username','current_password','email_address');
next_msg_dialog();
......
......@@ -41,7 +41,7 @@
{include file={filePath file="copynotice.tpl"}}
<script type="text/javascript">
<script>
<!--
next_msg_dialog();
-->
......
......@@ -14,7 +14,7 @@
{if isset($focusedField)}
<!-- Place cursor -->
<script type="text/javascript">
<script>
<!-- // First input field on page
focus_field('{$focusedField|escape}');
-->
......
......@@ -47,7 +47,7 @@
<!-- check, if cookies are enabled -->
<p class="fusiondirectoryLoginWarning">
<script type="text/javascript">
<script>
<!--
document.cookie = "fdtest=empty;path=/";
if (document.cookie.indexOf( "fdtest=") > -1 )
......@@ -76,7 +76,7 @@
{include file={filePath file="copynotice.tpl"}}
<script type="text/javascript">
<script>
<!--
enable_keyPress = false;
focus_field("{$focusfield}");
......
......@@ -129,7 +129,7 @@
{include file={filePath file="copynotice.tpl"}}
<!-- Place cursor in email field -->
<script type="text/javascript">
<script>
<!-- // First input field on page
focus_field('error_accept','login','directory','username','current_password','email_address');
next_msg_dialog();
......
......@@ -105,7 +105,7 @@ class divSelectBox
$s_return .= '</table></div></div>';
if ($this->headers !== FALSE) {
$s_return .=
'<script type="text/javascript">
'<script>
var sorter'.$this->id.' = tsorter.create(\''.$this->id.'\');
</script>';
}
......
......@@ -42,7 +42,7 @@
</table>
<!-- Place cursor -->
<script type="text/javascript">
<script>
<!-- // First input field on page
focus_field('new_user_password');
-->
......
Supports Markdown
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