]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
add prototype of icon replacing control; misc tweaks
[tt-rss.git] / functions.js
index 884256df99bf0638ae7f784542d5c9e705af19b7..f0135f76a5b62bef04650fb0ade8ceb894f07520 100644 (file)
@@ -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);
+       }
+}
+