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:
31
functions.js
31
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user