diff --git a/functions.js b/functions.js index 884256df9..f0135f76a 100644 --- a/functions.js +++ b/functions.js @@ -2248,3 +2248,34 @@ function feedArchiveRemove() { } } +function uploadIconHandler(iframe) { + try { + notify_info("Icon changed!"); + + alert("Icon changed, blah blah"); + + + } catch (e) { + exception_error("uploadIconHandler", e); + } +} + +function uploadFeedIcon() { + + try { + + var file = $("icon_file"); + + if (file.value.length == 0) { + alert(__("Please select an image file to upload.")); + return false; + } else { + notify_progress("Uploading, please wait...", true); + return true; + } + + } catch (e) { + exception_error("uploadFeedIcon", e); + } +} + diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 06a82ad57..25a6390a2 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -56,7 +56,7 @@ print ""; print ""; print ""; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index e724125ec..85d1e3f7b 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -15,6 +15,13 @@ $quiet = $_REQUEST["quiet"]; $mode = $_REQUEST["mode"]; + if ($subop == "uploadicon") { + print ""; + return; + } + /* if ($subop == "massSubscribe") { $ids = split(",", db_escape_string($_REQUEST["ids"])); @@ -247,7 +254,7 @@ print ""; - + print ""; print "
".__("Update")."
"; @@ -389,6 +396,28 @@ print ""; + /* Icon */ + + print "
"; + +/* print "
".__("Icon")."
"; + print "
"; + + print ""; + + print "
+ + + + +
"; + + print "
"; */ + $title = htmlspecialchars($title, ENT_QUOTES); print "
@@ -1391,7 +1420,7 @@ print " "; */ - print ""; print "
"; diff --git a/prefs.js b/prefs.js index 6c7f6f636..8dbe89c8f 100644 --- a/prefs.js +++ b/prefs.js @@ -2233,13 +2233,12 @@ function opmlImportDone() { updateFeedList(); } -function opml_import_handler(iframe) { +function opmlImportHandler(iframe) { try { var tmp = new Object(); tmp.responseText = iframe.document.body.innerHTML; notify(''); infobox_callback2(tmp); - } catch (e) { exception_error("opml_import_handler", e); }