1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-14 10:34:01 +02:00

Delete type="text/javascript" from <script> as it is the default in HTML5

This commit is contained in:
Jakub Vrana
2018-01-11 14:10:46 +01:00
parent 741b76fbd4
commit dc85ba2d86
26 changed files with 50 additions and 51 deletions

View File

@@ -22,7 +22,7 @@ class AdminerWymeditor {
function head() {
foreach ($this->scripts as $script) {
echo "<script type='text/javascript' src='" . h($script) . "'></script>\n";
echo "<script src='" . h($script) . "'></script>\n";
}
}
@@ -55,7 +55,7 @@ class AdminerWymeditor {
$lang = get_lang();
$lang = ($lang == "zh" || $lang == "zh-tw" ? "zh_cn" : $lang);
}
return "<textarea$attrs id='fields-" . h($field["field"]) . "' rows='12' cols='50'>" . h($value) . "</textarea><script type='text/javascript'>
return "<textarea$attrs id='fields-" . h($field["field"]) . "' rows='12' cols='50'>" . h($value) . "</textarea><script>
jQuery('#fields-" . js_escape($field["field"]) . "').wymeditor({ updateSelector: '#form [type=\"submit\"]', lang: '$lang'" . ($this->options ? ", $this->options" : "") . " });
</script>";
}