From cb7c075cd2db606f251b852342c2ed90ac591252 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 08:22:39 +0300 Subject: remove OPML.onImportComplete --- js/PrefHelpers.js | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'js/PrefHelpers.js') diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js index 6fabc48df..4edb3eb4d 100644 --- a/js/PrefHelpers.js +++ b/js/PrefHelpers.js @@ -258,37 +258,6 @@ const Helpers = { return false; } }, - onImportComplete: function(iframe) { - if (!iframe.contentDocument.body.innerHTML) return false; - - Element.show(iframe); - - Notify.close(); - - if (dijit.byId('opmlImportDlg')) - dijit.byId('opmlImportDlg').destroyRecursive(); - - const content = iframe.contentDocument.body.innerHTML; - - const dialog = new dijit.Dialog({ - id: "opmlImportDlg", - title: __("OPML Import"), - style: "width: 600px", - onCancel: function () { - window.location.reload(); - }, - execute: function () { - window.location.reload(); - }, - content: content - }); - - dojo.connect(dialog, "onShow", function () { - Element.hide(iframe); - }); - - dialog.show(); - }, export: function() { console.log("export"); window.open("backend.php?op=opml&method=export&" + dojo.formToQuery("opmlExportForm")); -- cgit v1.2.3