modify classname helpers to use element.classList; fix feed debugger & share--get
This commit is contained in:
parent
d5f4979831
commit
cf249d7e8c
|
@ -626,11 +626,10 @@ class Feeds extends Handler_Protected {
|
|||
]
|
||||
};
|
||||
</script>
|
||||
<?php
|
||||
echo javascript_tag("js/utility.js");
|
||||
echo javascript_tag("lib/dojo/dojo.js");
|
||||
echo javascript_tag("lib/dojo/tt-rss-layer.js");
|
||||
?>
|
||||
<?= javascript_tag("js/utility.js") ?>
|
||||
<?= javascript_tag("js/common.js") ?>
|
||||
<?= javascript_tag("lib/dojo/dojo.js") ?>
|
||||
<?= javascript_tag("lib/dojo/tt-rss-layer.js") ?>
|
||||
</head>
|
||||
<body class="flat ttrss_utility feed_debugger css_loading">
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -17,15 +17,15 @@ function $$(query) {
|
|||
|
||||
|
||||
Element.prototype.hasClassName = function(className) {
|
||||
return dojo.hasClass(this, className);
|
||||
return this.classList.contains(className);
|
||||
};
|
||||
|
||||
Element.prototype.addClassName = function(className) {
|
||||
return dojo.addClass(this, className);
|
||||
return this.classList.add(className);
|
||||
};
|
||||
|
||||
Element.prototype.removeClassName = function(className) {
|
||||
return dojo.removeClass(this, className);
|
||||
return this.classList.remove(className);
|
||||
};
|
||||
|
||||
Element.prototype.toggleClassName = function(className) {
|
||||
|
|
|
@ -156,6 +156,7 @@ class Share extends Plugin {
|
|||
<head>
|
||||
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
|
||||
<title><?= $line["title"] ?></title>
|
||||
<?= javascript_tag("js/common.js") ?>
|
||||
<?= javascript_tag("js/utility.js") ?>
|
||||
<style type='text/css'>
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
|
Loading…
Reference in New Issue