From: Andrew Dolgov Date: Thu, 14 Jan 2010 08:28:57 +0000 (+0300) Subject: add prototype of icon replacing control; misc tweaks X-Git-Tag: 1.4.0~49 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c3b7b797f51793825b5fa992635d951736df239a;p=tt-rss.git add prototype of icon replacing control; misc tweaks --- diff --git a/functions.js b/functions.js index 884256df..f0135f76 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 06a82ad5..25a6390a 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 e724125e..85d1e3f7 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 6c7f6f63..8dbe89c8 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); }