1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 03:25:56 +00:00

add prototype of icon replacing control; misc tweaks

This commit is contained in:
Andrew Dolgov
2010-01-14 11:28:57 +03:00
parent b6a6e262be
commit c3b7b797f5
4 changed files with 64 additions and 5 deletions

View 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);
}
}