get rid of a few more prototype-isms

This commit is contained in:
Andrew Dolgov 2021-02-18 22:23:06 +03:00
parent 89fd9ec8c3
commit c088e9d9d8
8 changed files with 8 additions and 7608 deletions

View File

@ -640,7 +640,6 @@ class Feeds extends Handler_Protected {
};
</script>
<?php
echo javascript_tag("lib/prototype.js");
echo javascript_tag("js/utility.js");
echo javascript_tag("lib/dojo/dojo.js");
echo javascript_tag("lib/dojo/tt-rss-layer.js");

View File

@ -358,7 +358,6 @@ class Handler_Public extends Handler {
<head>
<title><?= __("Share with Tiny Tiny RSS") ?></title>
<?php
echo javascript_tag("lib/prototype.js");
echo javascript_tag("lib/dojo/dojo.js");
echo javascript_tag("js/utility.js");
echo javascript_tag("lib/dojo/tt-rss-layer.js");
@ -583,7 +582,6 @@ class Handler_Public extends Handler {
<head>
<title>Tiny Tiny RSS</title>
<?php
echo javascript_tag("lib/prototype.js");
echo javascript_tag("js/utility.js");
echo javascript_tag("lib/dojo/dojo.js");
echo javascript_tag("lib/dojo/tt-rss-layer.js");
@ -743,7 +741,6 @@ class Handler_Public extends Handler {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<?php
echo stylesheet_tag("themes/light.css");
echo javascript_tag("lib/prototype.js");
echo javascript_tag("lib/dojo/dojo.js");
echo javascript_tag("lib/dojo/tt-rss-layer.js");
?>
@ -946,7 +943,6 @@ class Handler_Public extends Handler {
<link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png">
<?php
echo stylesheet_tag("themes/light.css");
echo javascript_tag("lib/prototype.js");
echo javascript_tag("lib/dojo/dojo.js");
echo javascript_tag("lib/dojo/tt-rss-layer.js");
?>

View File

@ -6,10 +6,8 @@
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
foreach (array("lib/prototype.js",
"lib/dojo/dojo.js",
foreach (array("lib/dojo/dojo.js",
"lib/dojo/tt-rss-layer.js",
"lib/prototype.js",
"js/common.js",
"js/utility.js",
"errors.php?mode=js") as $jsfile) {
@ -67,7 +65,7 @@
profile.removeOption(profile.getOptions());
reply.each((p) => {
reply.forEach((p) => {
profile
.attr("disabled", false)
.addOption(p);

View File

@ -76,8 +76,7 @@
</script>
<?php
foreach (array(#"lib/_prototype.js",
"lib/dojo/dojo.js",
foreach (array("lib/dojo/dojo.js",
"lib/dojo/tt-rss-layer.js",
"js/tt-rss.js",
"js/common.js",

View File

@ -16,10 +16,10 @@ window.addEventListener("load", function() {
setup_night_mode: function() {
const mql = window.matchMedia('(prefers-color-scheme: dark)');
const link = new Element("link", {
rel: "stylesheet",
id: "theme_auto_css"
});
const link = document.createElement("link");
link.rel = "stylesheet";
link.id = "theme_auto_css";
link.onload = function() {
document.querySelector("body").removeClassName("css_loading");

7590
lib/prototype.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -156,7 +156,6 @@ class Share extends Plugin {
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title><?= $line["title"] ?></title>
<?= javascript_tag("lib/prototype.js") ?>
<?= javascript_tag("js/utility.js") ?>
<style type='text/css'>
@media (prefers-color-scheme: dark) {

View File

@ -59,8 +59,7 @@
</script>
<?php
foreach (array(#"lib/prototype.js",
"lib/dojo/dojo.js",
foreach (array("lib/dojo/dojo.js",
"lib/dojo/tt-rss-layer.js",
"js/common.js",
"js/prefs.js",