mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 11:21:29 +00:00
rework OPML import process
This commit is contained in:
@@ -6,10 +6,8 @@
|
||||
print "<dlg id=\"$id\">";
|
||||
|
||||
if ($id == "importOpml") {
|
||||
print "<title>".__('OPML Import')."</title>";
|
||||
print "<content><![CDATA[";
|
||||
|
||||
print "<div class=\"prefFeedCatHolder\">";
|
||||
print "<div class=\"prefFeedOPMLHolder\">";
|
||||
header("Content-Type: text/html"); # required for iframe
|
||||
|
||||
$owner_uid = $_SESSION["uid"];
|
||||
|
||||
@@ -50,18 +48,12 @@
|
||||
print "</div>";
|
||||
|
||||
print "<div align='center'>";
|
||||
|
||||
print "<button onclick=\"return opmlImportDone()\">".
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"dijit.byId('opmlImportDlg').hide()\">".
|
||||
__('Close this window')."</button>";
|
||||
|
||||
print "</div>";
|
||||
|
||||
print "<script type=\"text/javascript\">";
|
||||
print "parent.opmlImportHandler(this)";
|
||||
print "</script>";
|
||||
|
||||
print "</div>";
|
||||
print "]]></content>";
|
||||
|
||||
//return;
|
||||
}
|
||||
|
||||
@@ -601,12 +601,12 @@
|
||||
print "</div>";
|
||||
|
||||
print "<div class='dlgButtons'>
|
||||
<input type=\"submit\" class=\"button\"
|
||||
onclick=\"return dijit.byId('feedEditDlg').execute()\"
|
||||
value=\"".__('Save')."\">
|
||||
<input type='submit' class='button'
|
||||
onclick=\"return dijit.byId('feedEditDlg').hide()\"
|
||||
value=\"".__('Cancel')."\">
|
||||
<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"return dijit.byId('feedEditDlg').execute()\">".
|
||||
__('Save')."</button>
|
||||
<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"return dijit.byId('feedEditDlg').hide()\">".
|
||||
__('Cancel')."</button>
|
||||
</div>";
|
||||
|
||||
return;
|
||||
@@ -1246,7 +1246,8 @@
|
||||
|
||||
print "</p>";
|
||||
|
||||
print "<iframe name=\"upload_iframe\"
|
||||
print "<iframe id=\"upload_iframe\"
|
||||
name=\"upload_iframe\" onload=\"opmlImportComplete(this)\"
|
||||
style=\"width: 400px; height: 100px; display: none;\"></iframe>";
|
||||
|
||||
print "<form style='display : block' target=\"upload_iframe\"
|
||||
|
||||
Reference in New Issue
Block a user