get rid of a few more prototype-isms
This commit is contained in:
parent
89fd9ec8c3
commit
c088e9d9d8
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
?>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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");
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue