Created
April 30, 2012 14:28
-
-
Save eri451/2558796 to your computer and use it in GitHub Desktop.
user title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let title = subscriber.getTitle(feedhref); | |
if (!options.feedtitle){ | |
if (title === undefined || title === ""){ | |
commandline.input("Title: ", createFeed, { argCount: "+"}); | |
} | |
else{ | |
createFeed(title) | |
} | |
else{ | |
commandline.input("Change title \'" + title + "\' ? [y,N]", | |
getTitleFromUser, | |
{ argCount: "1" }); | |
} | |
function createFeed(args){ | |
if (typeof(args) === "string") title = args; | |
lvmsvc.createLivemark( | |
subscriber.getFeedFolderId(), | |
title, | |
iosvc.newURI(loc, null ,null), | |
iosvc.newURI(feedhref, null, null), | |
-1 | |
); | |
} | |
function getTitleFromUser(args){ | |
if (args[0].length === 0 | |
|| "" + args[0] === "N" | |
|| "" + args[0] === "n" | |
|| "" + args[0] === "y"){ | |
if ("" + args[0] !== "y") createFeed(); | |
else | |
commandline.input("Title: ", createFeed, { argCount: "+" }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how about:
?