get rid of a few more prototype-isms

master
Andrew Dolgov 4 years ago
parent 89fd9ec8c3
commit c088e9d9d8

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

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

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

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

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

7590
lib/prototype.js vendored

File diff suppressed because it is too large Load Diff

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

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

Loading…
Cancel
Save