diff options
| author | Greg <supahgreg@users.noreply.github.com> | 2025-10-14 19:13:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-14 19:13:51 -0500 |
| commit | 703d310e400f1f4162d4e38afa3f5bf5169c5377 (patch) | |
| tree | b4ab637f1b25aae25cd10604468d509bbe26246e /js/PrefHelpers.js | |
| parent | 73f9d7bd6c8f222145c29c91eeb43ba7c7677496 (diff) | |
| parent | 6223abef082bc7d2383ecbd4cf42fd280073f5d1 (diff) | |
Merge pull request #51 from tt-rss/js-proto-extensions-and-misc-cleanup
Remove various JS prototype extensions and alias functions
Diffstat (limited to 'js/PrefHelpers.js')
| -rw-r--r-- | js/PrefHelpers.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js index cf3f03bf2..0d8702bae 100644 --- a/js/PrefHelpers.js +++ b/js/PrefHelpers.js @@ -8,7 +8,7 @@ const Helpers = { return Tables.getSelected("app-password-list"); }, updateContent: function(data) { - App.byId("app_passwords_holder").innerHTML = data; + document.getElementById("app_passwords_holder").innerHTML = data; dojo.parser.parse("app_passwords_holder"); }, removeSelected: function() { @@ -264,7 +264,7 @@ const Helpers = { apply: function() { xhr.post("backend.php", this.attr('value'), () => { Element.show("css_edit_apply_msg"); - App.byId("user_css_style").innerText = this.attr('value'); + document.getElementById("user_css_style").innerText = this.attr('value'); }); }, execute: function () { @@ -728,7 +728,7 @@ const Helpers = { dialog.plugins_to_update.push(p.plugin); const update_button = dijit.getEnclosingWidget( - App.find(`*[data-update-btn-for-plugin="${p.plugin}"]`)); + document.querySelector(`*[data-update-btn-for-plugin="${p.plugin}"]`)); if (update_button) update_button.domNode.show(); @@ -784,7 +784,7 @@ const Helpers = { }, OPML: { import: function() { - const opml_file = App.byId("opml_file"); + const opml_file = document.getElementById("opml_file"); if (opml_file.value.length === 0) { alert(__("Please choose an OPML file first.")); @@ -826,7 +826,7 @@ const Helpers = { dialog.show(); }; - xhr.send(new FormData(App.byId("opml_import_form"))); + xhr.send(new FormData(document.getElementById("opml_import_form"))); return false; } |